1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-18 00:01:17 +08:00
Files
opencv_contrib/modules/mcc/misc/python/pyopencv_cchecker.hpp
Ajit Pant 2554f41c47 Merge pull request #2532 from AjitPant:mcc
* First commit

* Updated mcc

* Fixed build warnings.

* Fixed warnings v2

* Added support for providing regions to look for the chart

* Added the neural network based detector

* Added Documentation and tests

* Fixed Warnings

* Fixed test failure

* Fixed warnings v2

* Fix Warning attemp 3

* Replaced size_t by int to fix warning

* fixed one more

* Fixed a size_t

* Fixed some bugs

* Modified the private interface a bit

* Just adding doc of what -t and -ci numbers are

* significantly improved performance of the macbeth chart detector (by two orders of magnitude, perhaps)

* Fixed the suggested changes.

* Removed imcodes from precomp

* Fixed warnings and namespace issue

* Replaced occurance of Matx33f by InputArray

Co-authored-by: Gary Bradski <garybradskigit@gmail.com>
Co-authored-by: Vadim Pisarevsky <vadim.pisarevsky@gmail.com>
2020-08-03 11:32:46 +03:00

19 lines
502 B
C++

#include "opencv2/mcc.hpp"
template <>
struct pyopencvVecConverter<Ptr<mcc::CChecker>>
{
static bool to(PyObject *obj, std::vector<Ptr<mcc::CChecker>> &value,
const ArgInfo &info)
{
return pyopencv_to_generic_vec(obj, value, info);
}
static PyObject *from(const std::vector<Ptr<mcc::CChecker>> &value)
{
return pyopencv_from_generic_vec(value);
}
};
typedef std::vector<cv::Ptr<mcc::CChecker>> vector_Ptr_CChecker;
typedef dnn::Net dnn_Net;