I purchased a See3CAM_CU130 which is listed as supported camera here:
I am able to access the camera with opencv and gstreamer, but I have no luck with the framerate.
The camera should be able to give 30 fps at 4k.
For gstreamer this pipeline is working with high fps (not sure how to measure fps but it looks close to 30) but it seems that the colors are wrongly interpreted
gst-launch-1.0 -v v4l2src ! image/jpeg, width=3840, height=2160, framerate=30/1 ! nvjpegdec ! nvoverlaysink
Additionally at each frame this error is thrown:
libnvv4l2_utils: dmabuf_fd (1059) is already mapped
This pipeline resulting in the same output:
gst-launch-1.0 -v v4l2src ! image/jpeg, width=3840, height=2160, framerate=30/1 ! nvjpegdec ! "video/x-raw(memory:NVMM), format=I420" ! nvoverlaysink
I am getting correct colors but much less fps when I run this pipeline:
gst-launch-1.0 -v v4l2src ! image/jpeg, width=3840, height=2160, framerate=30/1 ! nvjpegdec ! "video/x-raw, format=I420" ! nvoverlaysink
For OpenCV I was not lucky to get more then 15 fps this way:
cv::VideoCapture("v4l2src device=/dev/video0 ! image/jpeg, width=1920, height=1080, framerate=60/1 ! nvjpegdec ! video/x-raw(memory:NVMM), format=I420 ! nvvidconv ! video/x-raw, format=BGRx ! videoconvert ! appsink caps='video/x-raw, format=BGR'")
This is also working but only with 3 fps:
If I am using
i am only getting a completely green image.
Does any one have the same camera or some ideas how to improve performance?