jetsonhacks / buildOpenCVTX2

Build and install OpenCV for the NVIDIA Jetson TX2
MIT License
276 stars 153 forks source link

opencv run error #26

Open Systemyescool opened 5 years ago

Systemyescool commented 5 years ago

I run opencv on my TX2. Here is the error:

Does it mean that my TX2 without enough memory to run my program?

How can I fix it?

Thank you !!!

`--------------------------------------------------------------------------- error Traceback (most recent call last)

in () 8 all_rect = [] 9 sys.stdout.flush() ---> 10 work(imgdata, all_rect) 11 rectmap[imgid] = all_rect 12 result_annos = anno_func.get_refine_rects(annos, rectmap) in work(imgdata, all_rect) 42 data = cv2.resize(imgdata, (data_layer.shape[2], data_layer.shape[3])) 43 else: ---> 44 data = cv2.resize(imgdata, (imgdata.shape[0]*resize, imgdata.shape[1]*resize)) 45 data = data.transpose(2,0,1) 46 #print data.shape error: OpenCV(3.4.1-dev) /home/nvidia/opencv/modules/core/src/alloc.cpp:55: error: (-4) Failed to allocate 1610612736 bytes in function OutOfMemoryError`