Gpu memory increase while using cv2.rectangle
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 5.4k
- Forks
- 1k
- Avg merge
- 22h 17m
- Merged PRs (30d)
- 3
Description
Expected behaviour
cv2.rectangle not using gpu memory
Actual behaviour
Gpu memory increase while using cv2.rectangle
Steps to reproduce
>>> import cv2
>>> import numpy as np
>>> a = np.zeros((640, 640, 3), dtype=np.uint8)
>>> a = cv2.rectangle(a, [0,0,20,20], (255,0,0),2)
When using rect(x,y,w,h) to draw rectangle, I see gpu memory increase with nvidia-smi command
while a = cv2.rectangle(a, [0,0],[20,20], (255,0,0),2) does not produce this
Two version of opencv-python have tried: 4.8.0.74, 4.9.0
Issue submission checklist
- This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
- I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
- The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
- I'm using the latest version of
opencv-python
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the repository README to confirm whether this package toolchain can address the reported behavior, then reproduce both cv2.rectangle calls with the stated opencv-python versions. No repository file or test is named; done would be establishing whether the issue belongs in this repository or needs to be reported to OpenCV itself.
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