#include <tfmodel.h>
Public Member Functions | |
MoveNet_ (size_t th=default_threading) | |
MoveNet_ (const char *model, Optimization opt=Optimization::DEFAULT, size_t th=default_threading) | |
MoveNet_ (std::initializer_list< std::pair< const char *, Optimization > >, size_t th=default_threading) | |
bool | isValidOutput () const |
virtual void | process (cv::Mat &io_frame) override |
Public Member Functions inherited from vs2::VisionServer::BasePipe | |
const std::string & | getName () const |
const std::shared_ptr< nt::NetworkTable > & | getTable () const |
virtual void | init () |
virtual void | close () |
Public Member Functions inherited from TfModel | |
TfModel ()=delete | |
TfModel (std::initializer_list< std::pair< const char *, Optimization > >, size_t=default_threading) | |
TfModel (const char *def, const char *edge, size_t th=default_threading) | |
TfModel (const char *m, size_t t=default_threading) | |
TfModel (const TfModel &)=delete | |
operator bool () const | |
bool | isValid () const |
bool | isValidBuffer () const |
Protected Member Functions | |
float | getX (size_t idx) const |
float | getY (size_t idx) const |
float | getConfidence (size_t idx) const |
Protected Member Functions inherited from vs2::VPipeline< MoveNet_< void > > | |
VPipeline ()=delete | |
VPipeline (const VPipeline &)=delete | |
VPipeline (const char *name) | |
VPipeline (const std::string &name) | |
VPipeline (std::string &&name) | |
virtual | ~VPipeline ()=default |
Protected Member Functions inherited from vs2::VisionServer::BasePipe | |
BasePipe (const char *name) | |
BasePipe (const std::string &name) | |
BasePipe (std::string &&name) | |
BasePipe ()=delete | |
void | setCamera (const VisionCamera &) |
void | setPipeline (const BasePipe &) |
void | setSource (const cs::VideoSource &) |
void | getFrame (cv::Mat &) |
const cv::Mat1f & | getSrcMatrix () const |
const cv::Mat1f & | getSrcDistort () const |
Static Protected Member Functions | |
static bool | isValidIdx (size_t idx) |
Protected Attributes | |
const float * | outputs |
std::array< cv::Point2f, ~Output::TOTAL > | points |
Protected Attributes inherited from TfModel | |
std::unique_ptr< tflite::FlatBufferModel > | map |
std::unique_ptr< tflite::Interpreter > | model |
std::shared_ptr< edgetpu::EdgeTpuContext > | edgetpu_context |
tflite::ops::builtin::BuiltinOpResolver | resolver |
cv::Mat | input_tensor |
cv::Size | input_size |
Private Types | |
typedef struct MoveNet_< derived_t > | This_t |
Additional Inherited Members | |
Public Types inherited from TfModel | |
enum class | Optimization { DEFAULT , EDGETPU } |
Public Types inherited from MoveNet_B | |
enum class | Output { NOSE , L_EYE , R_EYE , L_EAR , R_EAR , L_SHOULDER , R_SHOULDER , L_ELBOW , R_ELBOW , L_WRIST , R_WRIST , L_HIP , R_HIP , L_KNEE , R_KNEE , L_ANKLE , R_ANKLE , TOTAL } |
Static Public Member Functions inherited from vs2::VisionServer::BasePipe | |
static const std::shared_ptr< nt::NetworkTable > & | ntable () |
Static Public Attributes inherited from TfModel | |
static size_t | default_threading {std::thread::hardware_concurrency() / 2} |
Static Public Attributes inherited from MoveNet_B | |
static const float | confid_thresh = 0.3 |
static const char * | default_model = "lite-model_movenet_singlepose_lightning_tflite_int8_4.tflite" |
static const std::array< const char *,(size_t) Output::TOTAL > | names |
static const std::array< std::pair< Output, Output >, 12 > | connections |
Runs a MoveNet pose estimation tflite model within a vision pipeline
|
inline |
|
inline |
MoveNet_< derived_t >::MoveNet_ | ( | std::initializer_list< std::pair< const char *, Optimization > > | ops, |
size_t | th = default_threading |
||
) |
|
inline |
|
overridevirtual |
Reimplemented from vs2::VPipeline< MoveNet_< void > >.
|
inlinestaticprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
protected |
|
protected |