spmallick / learnopencv

Learn OpenCV : C++ and Python Examples
https://www.learnopencv.com/
21.21k stars 11.6k forks source link

Failed to allocate 95588562276 bytes in function 'OutOfMemoryError' While tracker.init(frame,bb) #374

Open midhunandu opened 4 years ago

midhunandu commented 4 years ago

Trying to run the example code.

Initialize tracker with first frame and bounding box

ok = tracker.init(frame,bbox)

while initializing tracker using annotated bounding box(above line of code) memory error occured.

Error msg: Traceback (most recent call last): File "test001.py", line 26, in ok = tracker.init(frame,bbox) cv2.error: OpenCV(4.1.2) /io/opencv/modules/core/src/alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 95588562276 bytes in function 'OutOfMemoryError'

Does it requires this much memory?

akshaykadambatt commented 4 years ago

Same for me. Someone should look into this. This made GOTURN useless.

k123jack commented 4 years ago

same