mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
python: disable assertion in NumpyAllocator
This commit is contained in:
parent
15a6586062
commit
46f05f2db6
@ -149,7 +149,7 @@ public:
|
||||
{
|
||||
if( data != 0 )
|
||||
{
|
||||
CV_Error(Error::StsAssert, "The data should normally be NULL!");
|
||||
// issue #6969: CV_Error(Error::StsAssert, "The data should normally be NULL!");
|
||||
// probably this is safe to do in such extreme case
|
||||
return stdAllocator->allocate(dims0, sizes, type, data, step, flags, usageFlags);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user