JeVoisBase
1.18
JeVois Smart Embedded Machine Vision Toolkit Base Modules
|
Share this page: |
|
|
|
 |
 |
|
Go to the documentation of this file.
30 namespace jevois {
class StdModule; }
39 JEVOIS_SHARE_PATH
"/darknet/yolo", ParamCateg);
43 "cfg/coco.data", ParamCateg);
47 "cfg/yolov3-tiny.cfg", ParamCateg);
51 "weights/yolov3-tiny.weights", ParamCateg);
55 "config file (if relative, relative to dataroot)",
90 jevois::Parameter<yolo::dataroot, yolo::datacfg, yolo::cfgfile, yolo::weightfile, yolo::namefile,
91 yolo::nms, yolo::thresh, yolo::hierthresh, yolo::threads>
95 Yolo(std::string
const & instance);
111 float predict(cv::Mat
const & cvimg);
void drawDetections(jevois::RawImage &outimg, int inw, int inh, int xoff, int yoff)
Draw the detections.
JEVOIS_DECLARE_PARAMETER(thresh1, double, "First threshold for hysteresis", 50.0, ParamCateg)
std::future< void > itsReadyFut
Yolo(std::string const &instance)
Constructor.
float predict(cv::Mat const &cvimg)
Processing function, results are stored internally in the underlying Darknet network object.
void postInit() override
Initialize, configure and load the network in a thread.
void computeBoxes(int inw, int inh)
Compute the boxes.
Detect multiple objects in scenes using the Darknet YOLO deep neural network.
std::atomic< bool > itsReady
Network to load This meta parameter sets parameters weightfile
Network to load This meta parameter sets parameters datacfg
Network to load This meta parameter sets parameters dataroot
void postUninit() override
Un-initialize and free resources.
Network to load This meta parameter sets parameters cfgfile
virtual ~Yolo()
Virtual destructor for safe inheritance.
void getInDims(int &w, int &h, int &c) const
Get input width, height, channels.
void resizeInDims(int w, int h)
Resize the network's input image dims.
Network to load This meta parameter sets parameters and namefile for the chosen network
void sendSerial(jevois::StdModule *mod, int inw, int inh)
Send serial messages about detections.