I am looking for a way to maximize the use of the GPU while capturing video video from a webcam or video file.
Is compiling OpenCV with CUDA and OpenGL / OpenCL all that can be done? Are there other changes either to the code or hardware (Xavier NX Jetpack 4.4) configuration that I could make?
LIVE = 'video.mp4'
vid = cv2.VideoCapture(LIVE)
while(True):
ret, frame = vid.read()
# Is there an equivalent function that will use GPU
cv2.imshow('frame', frame)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
vid.release()
cv2.destroyAllWindows()
from OpenCV comand cv2.imShow that uses the GPU?
Python Tkinter Frame Widget
ReplyDeletePython Tkinter Checkbutton Widget
Python Tkinter Combobox Event Binding
Python Tkinter Combobox
Python Tkinter Text Widget