title: How to use full GPU acceleration in opencv python project?
body: <p>I have built opencv-4.5.3 from source with CUDA, fast math, dnn using cmake. Also added CUDA backend and target to use acceleration.</p>
  <pre><code>net = cv2.dnn.readNetFromDarknet(&quot;./yolov4.cfg&quot;, &quot;./yolov4_last.weights&quot;)
  net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA)
  net.setPreferableTarget(cv2.dnn.DNN_TARGET_CUDA)
  </code></pre>
  <p>I am using Nvidia rtx 3060. Still getting slow streaming from RTSP. Is there any way to use full gpu memory for a single python project?</p>