core: export getCPUFeaturesLine to bindings

This commit is contained in:
Pavel Rojtberg
2020-02-07 15:59:34 +01:00
parent db9f4436e0
commit e13a73d084
2 changed files with 9 additions and 1 deletions

View File

@@ -952,6 +952,14 @@ PyObject* pyopencv_from(const String& value)
return PyString_FromString(value.empty() ? "" : value.c_str());
}
#if CV_VERSION_MAJOR == 3
template<>
PyObject* pyopencv_from(const std::string& value)
{
return PyString_FromString(value.empty() ? "" : value.c_str());
}
#endif
template<>
bool pyopencv_to(PyObject* obj, String &value, const ArgInfo& info)
{