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

How to use PI camera V2.0 as a video input? #28

Closed
mhaboali opened this issue Jul 7, 2020 · 5 comments
Closed

How to use PI camera V2.0 as a video input? #28

mhaboali opened this issue Jul 7, 2020 · 5 comments

Comments

@mhaboali
Copy link

mhaboali commented Jul 7, 2020

Thanks for such a great and useful project.

Recently, I've been trying to test it with my PI camera V2.0(CSI-Camera) on Jetson Nano with JetPack 4.3, Ubuntu 18.04, and CUDA 10.0.

I modified the Dockerfile of Nano you offer to disable running the command. Then I tried to run the gstreamer command inside the container but I got this error as shown here:

image

And the same command works on the same machine outside the docker container.

Could you help me to get it running with this CSI-Camera?

@mhaboali mhaboali changed the title How to use PI camera V2.0 as video input? How to use PI camera V2.0 as a video input? Jul 7, 2020
@mdegans
Copy link
Collaborator

mdegans commented Jul 8, 2020

@mhaboali

I believe you must pass through the Argus socket. So add the following to your docker run:

-v /tmp/argus_socket:/tmp/argus_socket

You may also have to do the same with /tmp/camsock and nvscsock. I'm not certain but --runtime nvidia may bind mount all of this automatically.

@mhaboali
Copy link
Author

mhaboali commented Jul 8, 2020

Thanks a lot @mdegans

Now it works by adding the argus_socket folder 🚀

@mhaboali
Copy link
Author

mhaboali commented Jul 8, 2020

I added some code in the core.py file to read the CSI camera instead of USB or video inputs and I've tested it and it worked. Should I create a pull request for that?

@mhejrati
Copy link
Contributor

mhejrati commented Jul 9, 2020

Yes, that would be very much appreciated @mhaboali

@mhaboali
Copy link
Author

Hi sorry for the delay, I just got a time to create the PR.

Here's the pull request #34

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

3 participants