We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e959eb6 commit 1a4ee29Copy full SHA for 1a4ee29
src/convert.cpp
@@ -37,7 +37,7 @@ ndarray_obj_t *mat_to_ndarray(Mat& mat)
37
// Derived from:
38
// https://github.com/opencv/opencv/blob/aee828ac6ed3e45d7ca359d125349a570ca4e098/modules/python/src2/cv2_convert.cpp#L313-L328
39
if(mat.data == NULL)
40
- mp_const_none;
+ return (ndarray_obj_t*) mp_const_none;
41
Mat temp, *ptr = (Mat*)&mat;
42
if(!ptr->u || ptr->allocator != &GetNumpyAllocator())
43
{
0 commit comments