How to stream of Webcam raw data via on GPU ( cuda )?

Hi all,

My environment info:

  • Operating System: Ubuntu 18.04

  • NVIDIA GPU: GeForce RTX 2060

  • CUDA-10.2

I want to reach my default webcam and stream it via on my GPU. How can I achieve this? Is there a simple api or any guideline for this? I want to get raw data stream of my webcam but not via on CPU but GPU.