27 class NetworkPythonImpl;
41 void freeze(
bool doit)
override;
44 std::vector<vsi_nn_tensor_attr_t>
inputShapes()
override;
47 std::vector<vsi_nn_tensor_attr_t>
outputShapes()
override;
53 std::vector<cv::Mat>
doprocess(std::vector<cv::Mat>
const & blobs,
54 std::vector<std::string> & info)
override;
58 void onParamChange(network::pynet
const & param, std::string
const & newval)
override;
63 std::shared_ptr<NetworkPythonImpl>
itsImpl;
Wrapper around an DNN neural network invoked through python.
std::vector< cv::Mat > doprocess(std::vector< cv::Mat > const &blobs, std::vector< std::string > &info) override
Process input blobs and obtain output blobs.
virtual ~NetworkPython()
Destructor.
void load() override
Load from disk.
std::vector< vsi_nn_tensor_attr_t > inputShapes() override
Get shapes of all input tensors.
void onParamChange(network::pynet const ¶m, std::string const &newval) override
std::shared_ptr< NetworkPythonImpl > itsImpl
std::vector< vsi_nn_tensor_attr_t > outputShapes() override
Get shapes of all output tensors.
void freeze(bool doit) override
Freeze/unfreeze parameters that users should not change while running.
Abstract class to represent a neural network.
Main namespace for all JeVois classes and functions.