JetsonHacksNano / CSI-Camera

Simple example of using a CSI-Camera (like the Raspberry Pi Version 2 camera) with the NVIDIA Jetson Developer Kit
Other
817 stars 287 forks source link

[BUG] cpp example not working #33

Closed radisc closed 3 years ago

radisc commented 3 years ago

Describe the issue cannot run cpp example on jetson Nano, the python example is working fine

What version of L4T/JetPack L4T/JetPack version: 4.4

What version of OpenCV OpenCV version: 4.1.1 with CUDA

Python Version Python version if applicable: 2.7

To Reproduce Steps to reproduce the behavior: python simple_camera.py and the compiled and tried to launch ./simple_camera

Expected behavior i expect the example to run

Additional context tried to use nano with Mediapipe iris tracking example gpu, substituted gstreamer stuff in its cpp, but didn't work, so i tried the example from this repository and i noticed this didn't work either, so maybe there is a problem in the gstreamer pipeline? Is it my version of opencv?

update: i noticed that my build was not built with GSTREAMER support: Video I/O: DC1394 1.x: NO DC1394 2.x: YES (ver 2.2.5) FFMPEG: YES avcodec: YES (ver 57.107.100) avformat: YES (ver 57.83.100) avutil: YES (ver 55.78.100) swscale: YES (ver 4.8.100) avresample: YES (ver 3.7.0) GStreamer: NO OpenNI: NO OpenNI PrimeSensor Modules: NO OpenNI2: NO PvAPI: NO GigEVisionSDK: NO Aravis SDK: NO UniCap: NO UniCap ucil: NO V4L/V4L2: NO/YES XIMEA: NO Xine: NO gPhoto2: YES So probably building with GSTREAMER support would fix the problem But then, out of curiosity, why does the python version works?

radisc commented 3 years ago

turns out i was compiling againts the wrong version of opencv, sorry guys