I’m using jetson nano for face recognition 24/7. When my system was run about 4-5 hours, GStreamer can not read frames from the camera. I try to run again and have an error:
Error Timeout: (propagating from src/rpc/socket/client/SocketClientDispatch.cpp, function openSocketConnection(), line 215)
I restart jetson nano, I don’t meet this system again. But when I run my system too long still have this error.
This is the function I used to get GStreamer and push to openCV to process this:
def get_jetson_gstreamer_source(capture_width, capture_height, display_width, display_height, framerate, flip_method,sensor_id) :
"""
Return an OpenCV-compatible video source description that uses gstreamer to capture video from the camera on a Jetson Nano
"""
return (
f'nvarguscamerasrc sensor_id={sensor_id} ! video/x-raw(memory:NVMM), ' +
f'width=(int){capture_width}, height=(int){capture_height}, ' +
f'format=(string)NV12, framerate=(fraction){framerate}/1 ! ' +
f'nvvidconv flip-method={flip_method} ! ' +
f'video/x-raw, width=(int){display_width}, height=(int){display_height}, format=(string)BGRx ! ' +
'videoconvert ! video/x-raw, format=(string)BGR ! appsink'
)