I’m collecting data to quantify the improvement from @dusty_nv jetson-utils vs opencv imshow. The test examples run with no issues confirming a proper install, but the call from my threaded capture program isn’t when using the same functions.
Lets say I have a numpy array named pixels and I’ve successfully opened a gldisplay named display. The following is called in my frame consumer thread.
imshow(pixels)
shows my streaming output with no problem. I then take pixels and convert it to cuda with:
bgr_img = jetson.utils.cudaFromNumpy(pixels, isBGR=True) rgb_img =jetson.utils.cudaAllocMapped(width=bgr_img.width,height=bgr_img.height,format='rgb8') jetson.utils.cudaConvertColor(bgr_img, rgb_img) display.RenderOnce(rgb_img,width, height)
However my rendered output is only black. My image is smaller than my screen resolution, but that shouldn’t be the issue because the test case with a CSI camera correctly shows the input image.
I tried adding the synchronize function but that didn’t rectify it either.