Skip to content

OpenCV - Insufficient memory #1

@AzukiSensei

Description

@AzukiSensei

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions