July 2017
Intermediate to advanced
382 pages
9h 13m
English
Since OpenCV is one of those Python libraries that does not contain a single line of Python code under the hood (I'm kidding, but it's close), you will have to implement your custom estimator in C++. This can be done in four steps:
#include <opencv2/opencv.hpp> #include <opencv2/ml/ml.hpp> #include <stdio.h>
Then an estimator class can be created by inheriting from the StatModel class:
class MyClass : public cv::ml::StatModel { public:
Next, you define constructor ...
Read now
Unlock full access