OpenShot Library | libopenshot 1.1.1
Loading...
Searching...
No Matches
openshot::CVObjectMask Class Reference

Preprocess a clip into EfficientSAM/Cutie object masks stored in the object-detection protobuf format. More...

#include <CVObjectMask.h>

Public Member Functions

 CVObjectMask (std::string processInfoJson, ProcessingController &processingController)
void maskClip (openshot::Clip &video, size_t start=0, size_t end=0, bool process_interval=false)
std::shared_ptr< Frame > PreviewSeedMask (std::shared_ptr< Frame > frame)
bool SaveObjMaskData ()
void SetJson (const std::string value)
void SetJsonValue (const Json::Value root)

Static Public Member Functions

static std::string ValidateONNXModel (std::string modelPath)

Public Attributes

std::map< size_t, CVObjectMaskFrameData > masksData

Detailed Description

Preprocess a clip into EfficientSAM/Cutie object masks stored in the object-detection protobuf format.

Definition at line 57 of file CVObjectMask.h.

Constructor & Destructor Documentation

◆ CVObjectMask()

CVObjectMask::CVObjectMask ( std::string processInfoJson,
ProcessingController & processingController )

Definition at line 821 of file CVObjectMask.cpp.

Member Function Documentation

◆ maskClip()

void CVObjectMask::maskClip ( openshot::Clip & video,
size_t start = 0,
size_t end = 0,
bool process_interval = false )

Definition at line 906 of file CVObjectMask.cpp.

◆ PreviewSeedMask()

std::shared_ptr< Frame > CVObjectMask::PreviewSeedMask ( std::shared_ptr< Frame > frame)

Definition at line 832 of file CVObjectMask.cpp.

Referenced by openshot::ClipProcessingJobs::PreviewObjectMask().

◆ SaveObjMaskData()

bool CVObjectMask::SaveObjMaskData ( )

Definition at line 1101 of file CVObjectMask.cpp.

◆ SetJson()

void CVObjectMask::SetJson ( const std::string value)

Definition at line 1149 of file CVObjectMask.cpp.

Referenced by CVObjectMask().

◆ SetJsonValue()

void CVObjectMask::SetJsonValue ( const Json::Value root)

Definition at line 1158 of file CVObjectMask.cpp.

Referenced by SetJson().

◆ ValidateONNXModel()

std::string CVObjectMask::ValidateONNXModel ( std::string modelPath)
static

Definition at line 827 of file CVObjectMask.cpp.

Member Data Documentation

◆ masksData

std::map<size_t, CVObjectMaskFrameData> openshot::CVObjectMask::masksData

Definition at line 87 of file CVObjectMask.h.

Referenced by maskClip(), and SaveObjMaskData().


The documentation for this class was generated from the following files: