Merge pull request #11876 from ilovezfs:patch-1

pull/11879/head
Alexander Alekhin 6 years ago
commit 117e97adac
  1. 2
      modules/python/src2/cv2.cpp

@ -916,7 +916,7 @@ bool pyopencv_to(PyObject* obj, String& value, const char* name)
(void)name;
if(!obj || obj == Py_None)
return true;
char* str = PyString_AsString(obj);
const char* str = PyString_AsString(obj);
if(!str)
return false;
value = String(str);

Loading…
Cancel
Save