Hello,
i’m new with the Jetson Nano. First my hardware/software:
Camera: Waveshare IMX219-160IR Camera Supports NVIDIA Jetson Nano Developer Kit 8 Megapixels Infrared Night Vision 160° FOV Suits for AI Projects
Open CV: 4.1
I want to capture the Videostream from the camera with open cv. My code for the camera is the follwing.
cap = cv2.VideoCapture("nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)3280, height=(int)2464,format=(string)NV12, framerate=(fraction)20/1 ! nvvidconv flip-method=2 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink")
But if i start the application, i get follwing error:
[INFO] Computer Vision wird gestartet
[INFO] loading facial landmark predictor…
[INFO] starting video stream thread…
^C
(python3:10301): GStreamer-CRITICAL **: 12:08:56.710:
Trying to dispose element capsfilter2, but it is in PLAYING instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.
Traceback (most recent call last):
File “schnittstelle.py”, line 27, in
(python3:10301): GStreamer-CRITICAL **: 12:08:56.710:
Trying to dispose element capsfilter1, but it is in PLAYING instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.
(python3:10301): GStreamer-CRITICAL **: 12:08:56.711:
Trying to dispose element capsfilter0, but it is in PLAYING instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.
(python3:10301): GStreamer-CRITICAL **: 12:08:56.711:
Trying to dispose element nvvconv0, but it is in PLAYING instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.
(python3:10301): GStreamer-CRITICAL **: 12:08:56.711:
Trying to dispose element nvarguscamerasrc0, but it is in PLAYING instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.
(python3:10301): GStreamer-CRITICAL **: 12:08:56.711:
Trying to dispose element pipeline0, but it is in PAUSED instead of the NULL state.
You need to explicitly set elements to the NULL state before
dropping the final reference, to allow them to clean up.
This problem may also be caused by a refcounting bug in the
application or some element.
ergebnis_cv = queue_CV.get()
File “/usr/lib/python3.6/multiprocessing/queues.py”, line 94, in get
Process Process-1:
res = self._recv_bytes()
File “/usr/lib/python3.6/multiprocessing/connection.py”, line 216, in recv_bytes
buf = self._recv_bytes(maxlength)
File “/usr/lib/python3.6/multiprocessing/connection.py”, line 407, in _recv_bytes
buf = self._recv(4)
File “/usr/lib/python3.6/multiprocessing/connection.py”, line 379, in _recv
chunk = read(handle, remaining)
KeyboardInterrupt
Traceback (most recent call last):
File “/usr/lib/python3.6/multiprocessing/process.py”, line 258, in _bootstrap
self.run()
File “/usr/lib/python3.6/multiprocessing/process.py”, line 93, in run
self._target(*self._args, **self._kwargs)
File “/home/mufade2/Dokumente/Code/Drowiness_Detection_CV/Code_Drowiness_CV.py”, line 71, in drowiness_detection_CV
cap = cv2.VideoCapture(“nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)3280, height=(int)2464,format=(string)NV12, framerate=(fraction)20/1 ! nvvidconv flip-method=2 ! video/x-raw, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink”)
KeyboardInterrupt
Does someone know, why i get this error?
Best regards