dusty-nv / jetson-inference

Hello AI World guide to deploying deep-learning inference networks and deep vision primitives with TensorRT and NVIDIA Jetson.
https://developer.nvidia.com/embedded/twodaystoademo
MIT License
7.59k stars 2.94k forks source link

cmake #967

Closed ZeeshanSar closed 1 year ago

ZeeshanSar commented 3 years ago

hi i just bought a jetson nano and trying get started with hello world. i am face a problem with the cmake the error is below.

cmake [options]

cmake [options]

Specify a source directory to (re-)generate a build system for it in the current working directory. Specify an existing build directory to re-generate its build system.

Run 'cmake --help' for more information.

how to fix this error?

dusty-nv commented 3 years ago

Hi @ZeeshanSar, are you running this from a build directory? For example:

git clone --recursive https://github.com/dusty-nv/jetson-inference
cd jetson-inference
mkdir build
cd build
cmake ../
make 
sudo make install
ZeeshanSar commented 3 years ago

i made i mistake while cmake ../ i just typed cmake

do i can add more images to the images folder to identify more objects?

dusty-nv commented 3 years ago

Yes or you can save your images to a different directory and specify the full path to your image(s) that you want to process.

ZeeshanSar commented 3 years ago

and how can i can run this remotely using IP address?

dusty-nv commented 3 years ago

You would SSH into the device. If you are on Windows, use an SSH client like Putty or MobaXTerm.

ZeeshanSar commented 3 years ago

my jetson is giving an error for ./detectne.console.py: no such file or directory. while testing

dusty-nv commented 3 years ago

Is the working directory of your terminal <path-to-your-jetson-inference>/build/aarch64/bin

If not, go to that directory, or just run it as detectnet.py (no forward slash at beginning)

ZeeshanSar commented 3 years ago

ok fixed this but now i am facing another error

[TRT] Could not register plugin creator - : :FlattenCorcat_TRT version 1

nvbuf_utils: dmabuf_fd -1 mapped entry not found nvbuf_utils: Can not get buffer from FD... Exiting... [gstreamer] gstCamera -- end of stream (E0S)

(python:11425): GStreamer-CRITICAL **:23:24:35.764: gst_mini_object_set_qdatat: assertion 'object !=NULL' failed

I am using raspberry pi camera RV 1.3

dusty-nv commented 3 years ago

I am using raspberry pi camera RV 1.3

I don't think rPI camera v1.3 is supported, it is the IMX219-based rPI camera v2 that is supported in JetPack. You can check if you can view it with nvgstcapture-1.0, but I think the v1.3 isn't supported out of the box because the older Omnivision sensor it uses is EOL.

ZeeshanSar commented 3 years ago

ok now i am using imx219 8-0010 (platform:54080000.vi:4): connected to video

error is [gstreamer] gstreamer changed state from READY to PAUSED ==> mysink

dusty-nv commented 3 years ago

Can you view it with nvgstcapture-1.0?

ZeeshanSar commented 3 years ago

yes, i can view the video with nvgstcapture-1.0

dusty-nv commented 3 years ago

OK, that is good. Does it work with video-viewer utility from jetson-inference?

ZeeshanSar commented 3 years ago

Yes it is working as well.

ZeeshanSar commented 3 years ago

hi dusty how i can use the mix 219 camera? i have an error estremer changed state from ready to paused ==> mysink

dusty-nv commented 3 years ago

Can you provide the whole terminal output from when you run 'video-viewer csi://0' command?


From: ZeeshanSar @.> Sent: Sunday, March 28, 2021 10:14:18 AM To: dusty-nv/jetson-inference @.> Cc: Dustin Franklin @.>; Comment @.> Subject: Re: [dusty-nv/jetson-inference] cmake (#967)

hi dusty how i can use the mix 219 camera? i have an error estremer changed state from ready to paused ==> mysink

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdusty-nv%2Fjetson-inference%2Fissues%2F967%23issuecomment-808902780&data=04%7C01%7Cdustinf%40nvidia.com%7C501d0f77ae534539501c08d8f1f3c6cf%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C637525376608255957%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=Rf1tAN%2Bnv8IpG4LhuGPOxBuZvb7aUkoAHMLdBw4b28Q%3D&reserved=0, or unsubscribehttps://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADVEGK3RLVUKMQYA3WKZPB3TF42TVANCNFSM4ZZ3MGOA&data=04%7C01%7Cdustinf%40nvidia.com%7C501d0f77ae534539501c08d8f1f3c6cf%7C43083d15727340c1b7db39efd9ccc17a%7C0%7C0%7C637525376608265954%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=%2BiH0144z4g3az9c5wTtZG72kvz1qDHso5x5d0%2FUzyLA%3D&reserved=0.

ZeeshanSar commented 3 years ago

after command nvidia@nvidia-desktop:~ video-viewer csi://0

it opens a window with the video signal video-viewer: captured 955 frames (1280 x 720)

ZeeshanSar commented 3 years ago

nvidia@nvidia-desktop:~$ video-viewer csi://0 [gstreamer] initialized gstreamer, version 1.14.5.0 [gstreamer] gstCamera -- attempting to create device csi://0 [gstreamer] gstCamera pipeline string: [gstreamer] nvarguscamerasrc sensor-id=0 ! video/x-raw(memory:NVMM), width=(int)1280, height=(int)720, framerate=30/1, format=(string)NV12 ! nvvidconv flip-method=2 ! video/x-raw ! appsink name=mysink [gstreamer] gstCamera successfully created device csi://0 [video] created gstCamera from csi://0

gstCamera video options:

-- URI: csi://0

GST_ARGUS: 3264 x 1848 FR = 28.000001 fps Duration = 35714284 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1920 x 1080 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1640 x 1232 FR = 29.999999 fps Duration = 33333334 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 59.999999 fps Duration = 16666667 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: 1280 x 720 FR = 120.000005 fps Duration = 8333333 ; Analog Gain range min 1.000000, max 10.625000; Exposure Range min 13000, max 683709000;

GST_ARGUS: Running with following settings: Camera index = 0 Camera mode = 5 Output Stream W = 1280 H = 720 seconds to Run = 0 Frame Rate = 120.000005 GST_ARGUS: Setup Complete, Starting captures for 0 seconds GST_ARGUS: Starting repeat capture requests. CONSUMER: Producer has connected; continuing. [gstreamer] gstCamera -- onPreroll [gstreamer] gstCamera -- map buffer size was less than max size (1382400 vs 1382407) [gstreamer] gstCamera recieve caps: video/x-raw, width=(int)1280, height=(int)720, framerate=(fraction)30/1, format=(string)NV12 [gstreamer] gstCamera -- recieved first frame, codec=raw format=nv12 width=1280 height=720 size=1382407 RingBuffer -- allocated 4 buffers (1382407 bytes each, 5529628 bytes total) [gstreamer] gstreamer changed state from READY to PAUSED ==> mysink [gstreamer] gstreamer message async-done ==> pipeline0 [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> mysink [gstreamer] gstreamer changed state from PAUSED to PLAYING ==> pipeline0 RingBuffer -- allocated 4 buffers (2764800 bytes each, 11059200 bytes total) video-viewer: captured 1 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 [OpenGL] creating 1280x720 texture (GL_RGB8 format, 2764800 bytes) [cuda] registered openGL texture for interop access (1280x720, GL_RGB8, 2764800 bytes) video-viewer: captured 2 frames (1280 x 720) video-viewer: captured 3 frames (1280 x 720) video-viewer: captured 4 frames (1280 x 720) video-viewer: captured 5 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 6 frames (1280 x 720) video-viewer: captured 7 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 8 frames (1280 x 720) video-viewer: captured 9 frames (1280 x 720) video-viewer: captured 10 frames (1280 x 720) video-viewer: captured 11 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 12 frames (1280 x 720) video-viewer: captured 13 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 14 frames (1280 x 720) video-viewer: captured 15 frames (1280 x 720) video-viewer: captured 16 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 17 frames (1280 x 720) video-viewer: captured 18 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 19 frames (1280 x 720) video-viewer: captured 20 frames (1280 x 720) video-viewer: captured 21 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 22 frames (1280 x 720) video-viewer: captured 23 frames (1280 x 720) video-viewer: captured 24 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 25 frames (1280 x 720) video-viewer: captured 26 frames (1280 x 720) video-viewer: captured 27 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 28 frames (1280 x 720) video-viewer: captured 29 frames (1280 x 720) video-viewer: captured 30 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 31 frames (1280 x 720) video-viewer: captured 32 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 33 frames (1280 x 720) video-viewer: captured 34 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 35 frames (1280 x 720) video-viewer: captured 36 frames (1280 x 720) video-viewer: captured 37 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 38 frames (1280 x 720) video-viewer: captured 39 frames (1280 x 720) video-viewer: captured 40 frames (1280 x 720) video-viewer: captured 41 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 42 frames (1280 x 720) video-viewer: captured 43 frames (1280 x 720) video-viewer: captured 44 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 45 frames (1280 x 720) video-viewer: captured 46 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 47 frames (1280 x 720) video-viewer: captured 48 frames (1280 x 720) video-viewer: captured 49 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 50 frames (1280 x 720) video-viewer: captured 51 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 52 frames (1280 x 720) video-viewer: captured 53 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 54 frames (1280 x 720) video-viewer: captured 55 frames (1280 x 720) video-viewer: captured 56 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 57 frames (1280 x 720) video-viewer: captured 58 frames (1280 x 720) video-viewer: captured 59 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 60 frames (1280 x 720) video-viewer: captured 61 frames (1280 x 720) video-viewer: captured 62 frames (1280 x 720) video-viewer: captured 63 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 64 frames (1280 x 720) video-viewer: captured 65 frames (1280 x 720) video-viewer: captured 66 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 67 frames (1280 x 720) video-viewer: captured 68 frames (1280 x 720) video-viewer: captured 69 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 70 frames (1280 x 720) video-viewer: captured 71 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 72 frames (1280 x 720) [OpenGL] glDisplay -- set the window size to 1280x720 video-viewer: captured 73 frames (1280 x 720) video-viewer: captured 74 frames (1280 x 720) video-viewer: captured 75 frames (1280 x 720) video-viewer: captured 76 frames (1280 x 720) video-viewer: captured 77 frames (1280 x 720) video-viewer: captured 78 frames (1280 x 720) video-viewer: captured 79 frames (1280 x 720) video-viewer: captured 80 frames (1280 x 720) video-viewer: captured 81 frames (1280 x 720) video-viewer: captured 82 frames (1280 x 720) video-viewer: captured 83 frames (1280 x 720) video-viewer: captured 84 frames (1280 x 720)