# Can p5js access the camera on a jetson nano?

**URL:** <https://discourse.processing.org/t/can-p5js-access-the-camera-on-a-jetson-nano/27494>\
**Category:** Libraries\
**Created:** [January 31, 2021, 3:49am UTC](https://discourse.processing.org/t/can-p5js-access-the-camera-on-a-jetson-nano/27494 "2021-01-31T03:49:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![skypickle](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/skypickle/32/11863_2.png) [@skypickle](https://discourse.processing.org/u/skypickle)\
**Post date:** [January 31, 2021, 3:49am UTC](https://discourse.processing.org/t/can-p5js-access-the-camera-on-a-jetson-nano/27494/1 "2021-01-31T03:49:58Z")

</div>

The jetson nano is a raspberry-pi like device and it can use raspberry pi cameras. It runs ubuntu and has a facility for running a webserver. I can execute p5js sketches fine.

However I cannot get the the video from the camera to show.  
I know the camera works because this line in terminal puts up a live stream

```auto
gst-launch-1.0 nvarguscamerasrc sensor_id=0 ! nvoverlaysink

```

How can I ask p5js to use the raspberry-pi camera on the jetson nano?

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [February 4, 2021, 12:08am UTC](https://discourse.processing.org/t/can-p5js-access-the-camera-on-a-jetson-nano/27494/2 "2021-02-04T00:08:09Z")

</div>

Hi,

I just saw that you opened an issue on the GitHub repository :

> <https://github.com/processing/processing-video/issues/176>
>
> I’ve gotten processing(p5js) to work with the jetson nano since it is javascript , but only as long as only primitive...

I think that the repo is a better place to ask specific gstreamer details about the library. Anyway it can be useful to link the thread here! 😉

Also are you asking for p5js or Processing? Because it’s two different languages and libraries…

---

<div class="post-metadata">

**Author:** ![skypickle](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/skypickle/32/11863_2.png) [@skypickle](https://discourse.processing.org/u/skypickle)\
**Post date:** [February 4, 2021, 12:37am UTC](https://discourse.processing.org/t/can-p5js-access-the-camera-on-a-jetson-nano/27494/3 "2021-02-04T00:37:17Z")

</div>

I am using p5js. But processing is very similar.
