Exception: jetson.utils -- failed to create glDisplay device

The input image to detectNet.Detect() should be in float4 RGBA format - see here for a post on converting it into that format with cv2: detectnet-video - #4 by shankarprasad_hm