shawnsky/extract-subtitles

OpenCV - Insufficient memory

Opened this issue · 0 comments

D:\Multimedia\Bureau\OCR\Tesseract>python extract_subtitles.py input.mp4 34052
[Video Path] input.mp4
[Frame Directory] frames/
[Subtitles Language] fra
Extracting key frames, waiting...
Traceback (most recent call last):
File "extract_subtitles.py", line 154, in
diff = cv2.absdiff(curr_frame, prev_frame)
cv2.error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\core\src\alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 2764800 bytes in function 'cv::OutOfMemoryError'