All - Having inconsistent execution of my code (c++) on a Jetson Nano - Sometimes the code successfully runs and starts displaying contours, sometimes it hangs after only grabbing one frame (with no errors). I’ve worked to narrow it down, and it seems that the call to open the gstreamer pipeline gets hung up in cap_gstreamer.cpp - failing to open the camera periodically.
Code is here: https://github.com/rmeesters/GnomeVision-2020
One thing I noticed is that there are updates to the OpenCV code used, particularly cap_gstreamer.cpp which can now handle YUY2 formats, but the older version in the example code I used as a base does not. Unfortunately I’ve been unable to figure out how to update that part of the code base successfully.
When I run the pipeline as a command line, it does work fairly reliably - see “streamtest5.sh” in my scripts directory, but it does complain a fair bit about buffers - I’m just not quite sure what I can add in the pipeline to correct.
Any thoughts would be extremely helpful!