I want to perform a blob detection on a Jetson Nano.
I have a 1280x720@120fps video-input and want to find the largest blobs of three different colors.
It is easy with opencv without cuda : hsv, blur, threshold, binary images, finding contours, finding centeroid.
The problem is, without GPU usage I get 10-12 fps.
I need 60+ fps, so I want to do this with cuda support.
I installed opencv4.0.0 with cuda support and it is running so far.
I am programming in c++ with gcc.
But there is no “finding contours” in cv::cuda::
I managed to read the video, convert it to HSV, split into 3 channels, “find” (I can see them) blobs with threshold but I just do not know how to get the x,y,width and height of the rectangle enclosing the biggest blob.
Without the “finding” of theses values I am up to 70-80 fps, which is great,
but without getting these numbers it is useless.
I am sure, I am not the first one with this scenario and I would be glad if anyone could help me.