Unable to open Camera

I’ve plugged the MIPI CSI camera but nothing comes up when I open the camera.The output getting when open the camera was:

nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)NV12, framerate=(fraction)30/1 ! nvvidconv flip-method=0 ! video/x-raw, width=(int)1280, height=(int)720, format=(string)BGRx ! videoconvert ! video/x-raw, format=(string)BGR ! appsink

but when gst-launch-1.0 command give the camera opened.

Do you mean it the string works in gst-launch-1.0 command, but cannot work in cv2.VideoCapture()?

Please share your release version for reference.


Yes,when cv2.videocapture() use it shows the above result only.

hello abhilashsl,

dose there shows any failure from kernel side? please execute $ dmesg --follow, to gather kernel logs while you enable camera stream.
please also check release tag for the L4T version you’re working with, i.e. $ cat /etc/nv_tegra_release.

Did you run it with python (Python2 version) or python3?

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.