Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Procedure to make the BasicV4L2 work on Nano #2

Open
beniroquai opened this issue Feb 18, 2020 · 6 comments
Open

Procedure to make the BasicV4L2 work on Nano #2

beniroquai opened this issue Feb 18, 2020 · 6 comments

Comments

@beniroquai
Copy link

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
Copy link

krs1980 commented May 14, 2021

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

@beniroquai
Copy link
Author

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
Copy link

krs1980 commented May 15, 2021 via email

@beniroquai
Copy link
Author

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

@krs1980
Copy link

krs1980 commented May 17, 2021

@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
Copy link

krs1980 commented May 25, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants