Skip to content

Commit 46f05f2

Browse files
committed
python: disable assertion in NumpyAllocator
1 parent 15a6586 commit 46f05f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/python/src2/cv2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class NumpyAllocator : public MatAllocator
149149
{
150150
if( data != 0 )
151151
{
152-
CV_Error(Error::StsAssert, "The data should normally be NULL!");
152+
// issue #6969: CV_Error(Error::StsAssert, "The data should normally be NULL!");
153153
// probably this is safe to do in such extreme case
154154
return stdAllocator->allocate(dims0, sizes, type, data, step, flags, usageFlags);
155155
}

0 commit comments

Comments
 (0)