The main problem i have is accessing the images from cuda memory(İmage pixels) for drawing lines, crop images or ROI…
For the lack of methods in glDisplay( jetson.utils.glDisplay ) i want to use openCv. I converted to cuda memory to np array and it looks like working fine( i still have no idea how much processing it ll cost to me).
After conversion, the image colors are breakdown. I wonder is there any way to fix the showed colors to normal.
img, width, height = camera.CaptureRGBA(zeroCopy=1)
CV2img = jetson.utils.cudaToNumpy(img, width, height, 4)
detections = net.Detect(img, width, height, opt.overlay)
cv2.imshow(“DetectNet”, CV2img / 255)