alliedvision / examples

Code examples for Allied Vision Alvium CSI-2 camera, V4L2
The Unlicense
40 stars 14 forks source link

Procedure to make the BasicV4L2 work on Nano #2

Open beniroquai opened 4 years ago

beniroquai commented 4 years ago

After calling the make command in the appropriate folder, what are the parameters which should be used to call the BasicDemo?

Is there a step-by-step guide in order to get the Camera running on a Jetson board?

krs1980 commented 3 years ago

@beniroquai, did you found an answer? It would be great to share as I am also facing the same issue.

beniroquai commented 3 years ago

Hey, sorry, I cannot remember if I got it to work in the end. Anyway, I use the VimbaViewer which does everything I wanted. Some of the instructions on how to install everything are noted here Hope that helps

krs1980 commented 3 years ago

Thank you very much for your response. I was of the view point that VimbaViewer also needs driver, but as you say it works, I would give it a try.

Kind Regards Ram Seervi (Team Leader - Embedded)

[A picture containing drawing Description automatically generated] Email: @.**@.> I web: www.monarch-innovation.comhttp://www.monarch-innovation.com/. M:+91-93272 56002


This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message

From: Benedict Diederich @.> Sent: Saturday, May 15, 2021 3:02 AM To: alliedvision/examples @.> Cc: Khinya Ram Seervi @.>; Comment @.> Subject: Re: [alliedvision/examples] Procedure to make the BasicV4L2 work on Nano (#2)

Hey, sorry, I cannot remember if I got it to work in the end. Anyway, I use the VimbaViewer which does everything I wanted. Some of the instructions on how to install everything are noted herehttps://github.com/bionanoimaging/UC2-Software-GIT/tree/master/GUI/NVIDIA_JETSON#use-alvium-csi-camera Hope that helps

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/alliedvision/examples/issues/2#issuecomment-841514010, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AUCJSHCIAYLEF2DURKWOPODTNWJFHANCNFSM4KXGSJKQ.

beniroquai commented 3 years ago

Ah, you want to use the CSI-based camera? Were you able to get this running?

krs1980 commented 3 years ago

@beniroquai , thanks again for your response, but I couldn't perform the steps as per the share link. Luckily, I got a way for camera to be detected.

I am still not able to get the camera do what I need for my project. I run the BasicDemo, the output throws an error. Here is the output: //////////////////////////////////////////// /// Basic V4L2 Demo - Version 1.1.0 ////////////////////////////////////////////

Error: No device specified.

Usage: ./BasicDemo [options]

Options: -d | --device Video device name -m | --mmap Use memory mapped buffers [default] -u | --userp Use application allocated buffers -b | --buff Number of buffers ( > 3 ) -l | --left Left (X offset) for crop -t | --top Top (Y offset) for crop -w | --width Width for crop -h | --height Height for crop

I am trying to figure out where I am going wrong. Any help would be a big support.

krs1980 commented 3 years ago

To make BasicV4L2 work on Nano, we need to specify options through command line. While other options are not mandatory and might be code takes their default value, the -d option has to specify the camera node (/dev/video0 in my case). Simplest way to run the code is: ./BasiDemo -d /dev/video0 Kindly edit video node as appropriate Specify other parameters as appropriate.

It would have been better if the readme.txt mentioned a simple way to run the output file with other arguments to be provided in the command line