opencv / opencv/opencv-python

Insufficient memory

Open
#957 13 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

question
Dominant language
Python
Stars
5.4k
Forks
1k
Avg merge
22h 17m
Merged PRs (30d)
3

Description

sir I made OMR program in python version 3.11.4 32 bit version and its get problem about memory. and i am not use python 64 bit version because i also use twain library for scan OMR sheet and twain library is work on 32 bit and in 64 bit python its not show the scanner. so i use 32 bit library.
Error like :
res = cv2.matchTemplate(
^^^^^^^^^^^^^^^^^^
cv2.error: OpenCV(4.8.0) D:\a\opencv-python\opencv-python\opencv\modules\core\src\alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 4380856 bytes in function 'cv::OutOfMemoryError'
and sir please replay me.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the reported cv2.matchTemplate call and the OpenCV 4.8.0 allocation error in the issue body. Review the interaction between Python 3.11.4 32-bit memory limits and the TWAIN scanner requirement, then determine whether the failure can be reproduced and what compatible configuration resolves it.

Written by the indexing model from the issue text.

Assessment

Tech stack
opencv, python
Domain
computer-vision
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.