OpenShot Library | libopenshot  0.7.0
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
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< FramePreviewSeedMask (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, CVObjectMaskFrameDatamasksData
 

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 816 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 901 of file CVObjectMask.cpp.

◆ PreviewSeedMask()

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

Definition at line 827 of file CVObjectMask.cpp.

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

◆ SaveObjMaskData()

bool CVObjectMask::SaveObjMaskData ( )

Definition at line 1096 of file CVObjectMask.cpp.

◆ SetJson()

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

Definition at line 1144 of file CVObjectMask.cpp.

Referenced by CVObjectMask().

◆ SetJsonValue()

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

Definition at line 1153 of file CVObjectMask.cpp.

Referenced by SetJson().

◆ ValidateONNXModel()

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

Definition at line 822 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: