I have isntalled Jetson inference on my jetson nano, everything went fine so far and even did the sample jpeg recognition demo. Now i went ahead and tried the live camera demo but it would seem like it could not open the camera.
The camera is a IMX708 installed via driver using this guide , no problem with the driver and am being able to view the camera using the following gstreamer command
gst-launch-1.0 nvarguscamerasrc sensor-id=0! "video/x-raw(memory:NVMM),width=4608,height=2592,framerate=14/1" ! queue ! nvegltransform ! nveglglessink
but when i tried as per the jetson live inference demo
cd jetson-inference/build/aarch64/bin
./imagenet.py csi://0
And this keep reapeating over and over,
I also tried ./imagenet.py /dev/video0 because v4l2-ctl says its present
Any ideas for a fix ?
Hi,
please try this command and see if it runs successfully:
gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! "video/x-raw(memory:NVMM),width=4608,height=2592,framerate=14/1" ! nvvidconv ! video/x-raw ! fakesink sync=0
And do you use Jetpack 4.6.4? This is the latest version for Jetson Nano.
thesis.finals333:
@thesis.finals333 there is an error here about the framerate requested, try running it with --input-rate=14 . And if that doesn’t work, you may edit the GStreamer pipeline that gstCamera.cpp creates here:
#endif
#if NV_TENSORRT_MAJOR > 4
// on newer JetPack's, it's common for CSI camera to need flipped
// so here we reverse FLIP_NONE with FLIP_ROTATE_180
if( mOptions.flipMethod == videoOptions::FLIP_NONE )
mOptions.flipMethod = videoOptions::FLIP_ROTATE_180;
else if( mOptions.flipMethod == videoOptions::FLIP_ROTATE_180 )
mOptions.flipMethod = videoOptions::FLIP_NONE;
ss << "nvarguscamerasrc sensor-id=" << mOptions.resource.port << " ! video/x-raw(memory:NVMM), width=(int)" << GetWidth() << ", height=(int)" << GetHeight() << ", framerate=" << (int)mOptions.frameRate << "/1, format=(string)NV12 ! nvvidconv flip-method=" << mOptions.flipMethod << " ! ";
#else
// older JetPack versions use nvcamerasrc element instead of nvarguscamerasrc
ss << "nvcamerasrc fpsRange=\"" << (int)mOptions.frameRate << " " << (int)mOptions.frameRate << "\" ! video/x-raw(memory:NVMM), width=(int)" << GetWidth() << ", height=(int)" << GetHeight() << ", format=(string)NV12 ! nvvidconv flip-method=" << mOptions.flipMethod << " ! "; //'video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080, format=(string)I420, framerate=(fraction)30/1' ! ";
#endif
ss << (enable_nvmm ? "video/x-raw(memory:NVMM) ! " : "video/x-raw ! ");
ss << "appsink name=mysink";
}
else
{
system
Closed
April 24, 2024, 7:38am
6
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.