OpenCV Deallocation Segmentation Fault

Also try adding drop=1 into appsink properties in opencv videoCapture pipeline:

cap = cv2.VideoCapture("nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080,format=(string)NV12, framerate=(fraction)30/1 ! nvvidconv ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=BGR ! appsink drop=1")
1 Like