Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gpu memory increase while using cv2.rectangle #972

Open
1 of 4 tasks
bingo00 opened this issue Apr 11, 2024 · 0 comments
Open
1 of 4 tasks

Gpu memory increase while using cv2.rectangle #972

bingo00 opened this issue Apr 11, 2024 · 0 comments

Comments

@bingo00
Copy link

bingo00 commented Apr 11, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant