解決策。cv2.error: OpenCV(4.5.3) C:\Users\......src\alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 148879029 bytes in function 'cv::OutOfMemoryError'
解決策。cv2.error: OpenCV(4.5.3) C:\Users......src\alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 148879029 bytes in function 'cv::OutOfMemoryError'
エラー
環境
windows10
python3.7
エラー
cv2.error: OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-_xlv4eex\opencv\modules\core\src\alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 148879029 bytes in function 'cv::OutOfMemoryError'
エラー詳細
Traceback (most recent call last): File "UAV-image-stitching.py", line 37, in <module> n = cv2.imread(img) cv2.error: OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-_xlv4eex\opencv\modules\core\src\alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 148879029 bytes in function 'cv::OutOfMemoryError'
解決策
言葉どおり、メモリが足らないので、
ファイルを整理するとか、
起動している別のアプリを閉じるとか。。。
です。