I have confirmed that camera is identified by system using command:
ls -l /dev/video*
response: /dev/video0
I installed python3 with command as below:
sudo apt-get install python3 python3-pip
Also installed libraries as below:
pip install numpy opencv-python torch torchvision
Also installed gstreamer as below:
sudo apt-get install gstreamer1.0-tools gstreamer1.0-alsa gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav
I have confirmed installation using following command:
gst-inspect-1.0 --version
for above command, I am getting response as :
gst-inspect-1.0 version 1.20.3
Gstreamer 1.20.3
Can you try first verifying image capture with bare GStreamer?
Just run the following on a console:
gst-launch-1.0 nvarguscamerasrc ! fake sink
It should show some GStreamer messages, then it would look as if it was hanging and show something like timer. To stop it you can Ctrl+C. If all that happens without it breaking or showing any error messages. Then mess you are able to capture.
Then you can try capturing and previewing the image with GStreamer:
That being said, if you were able to provide us with a bit more detail on what exactly are you looking to accomplish, we can give you a hand with a more specialized example.
best regards,
Andrew
Embedded Software Engineer at ProventusNova
I tried command:
gst-launch-1.0 nvarguscamerasrc ! fakesink
Response to above command is as below:
WARNING: errorneous pipeline: no element ‘nvarguscamerasrc’
I also referred wiki link provided by you and checked all required installations:
sudo apt install python3-opencv python3-pip
pip3 install numpy
sudo apt install python3-gi gir1.2-gstreamer-1.0 gir1.2-gst-plugins-base-1.0