# Use gmsl camera with python

**URL:** <https://forums.developer.nvidia.com/t/use-gmsl-camera-with-python/49529>\
**Category:** DRIVE Hardware\
**Created:** [April 25, 2017, 12:05pm UTC](https://forums.developer.nvidia.com/t/use-gmsl-camera-with-python/49529 "2017-04-25T12:05:25Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tinokl](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tinokl](https://forums.developer.nvidia.com/u/tinokl)\
**Post date:** [April 25, 2017, 12:05pm UTC](https://forums.developer.nvidia.com/t/use-gmsl-camera-with-python/49529/1 "2017-04-25T12:05:25Z")

</div>

Hi!

As we want to use a ready trained tensorflow dnn we like to simple feed the images from the camera?  
What is the best way or typical way to get this done?

My first intention was a simple python script feeding the gmsl camera stream but i am not able to read the images out. I tried to get a gstream pipline working but no luck so far.

I was inspired by this post:  
[https://devtalk.nvidia.com/default/topic/907780/-python-how-to-use-tx1-camera-with-opencv/](https://devtalk.nvidia.com/default/topic/907780/-python-how-to-use-tx1-camera-with-opencv/)

gstream problem for now is this:  
No element: nvcamerasrc

got a little confused by this post:  
[https://devtalk.nvidia.com/default/topic/976224/jetson-tx1/-pyhon-and-opencv-how-to-use-the-camera-on-tx1/](https://devtalk.nvidia.com/default/topic/976224/jetson-tx1/-pyhon-and-opencv-how-to-use-the-camera-on-tx1/)

We use the drive px 2 with the latest firmware and ubuntu 16.04.

Some help would be appreciated thanks!

---

<div class="post-metadata">

**Author:** ![SteveNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/stevenv/32/14043_2.png) [@SteveNV](https://forums.developer.nvidia.com/u/SteveNV)\
**Post date:** [April 26, 2017, 4:01am UTC](https://forums.developer.nvidia.com/t/use-gmsl-camera-with-python/49529/2 "2017-04-26T04:01:45Z")

</div>

Hello tinokl,

JetsonTX1 and DrivePX2 are different.  
Could you please refer to below link? Thanks.  
[NVIDIA DRIVE Downloads | NVIDIA Developer](https://developer.nvidia.com/driveworks/getting-started-with-drivepx2).

---

<div class="post-metadata">

**Author:** ![tinokl](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tinokl](https://forums.developer.nvidia.com/u/tinokl)\
**Post date:** [May 3, 2017, 8:17am UTC](https://forums.developer.nvidia.com/t/use-gmsl-camera-with-python/49529/3 "2017-05-03T08:17:43Z")

</div>

Hello Steve,

I searched through the docs but I could only find some cpp related examples.  
For that reason i searched the web and got some hints from jetson related projects.  
(I know they are different but some tips worked for me)

For quick science driven development python has some benefits as i like to use tensorflow and keras.

By now i am searching for a simple solution to get the camera stream to my python script but  
for future purposes i need them within ROS. Actually i would prefer a ROS ready solution, so we can grab the images wherever we need them.

In this post: [https://devtalk.nvidia.com/default/topic/995880/?comment=5093714](https://devtalk.nvidia.com/default/topic/995880/?comment=5093714)  
a guideline doc was mention, any new information on that?

ROS is working pretty out of the box except for the cameras.

Thanks

---

<div class="post-metadata">

**Author:** ![SteveNV](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/stevenv/32/14043_2.png) [@SteveNV](https://forums.developer.nvidia.com/u/SteveNV)\
**Post date:** [May 4, 2017, 1:50am UTC](https://forums.developer.nvidia.com/t/use-gmsl-camera-with-python/49529/4 "2017-05-04T01:50:15Z")

</div>

Hello tinokl,

A upcoming PDK will be released in May. Thanks.

---

<div class="post-metadata">

**Author:** ![WZhouuuu](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@WZhouuuu](https://forums.developer.nvidia.com/u/WZhouuuu)\
**Post date:** [June 13, 2017, 12:37am UTC](https://forums.developer.nvidia.com/t/use-gmsl-camera-with-python/49529/5 "2017-06-13T00:37:15Z")

</div>

Hi tinokl,

There’s an update of ROS in [https://devtalk.nvidia.com/default/topic/1011002/general/cross-compiling-driveworks-on-the-px2-with-ros/](https://devtalk.nvidia.com/default/topic/1011002/general/cross-compiling-driveworks-on-the-px2-with-ros/)

just wondering have you figured out how to get gmsl camera stream in python? If you did, can you please share some instructions? Thanks!

---

<div class="post-metadata">

**Author:** ![tinokl](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@tinokl](https://forums.developer.nvidia.com/u/tinokl)\
**Post date:** [June 13, 2017, 10:44am UTC](https://forums.developer.nvidia.com/t/use-gmsl-camera-with-python/49529/6 "2017-06-13T10:44:56Z")

</div>

Hi WZhouuuu,

thanks for the update on ROS I already joined the conversation.

Unfortunaly i did not found a way to get the cameras working in python but i am still very interessted in a solution (thats why i am asking for a gstreamer pipeline or something similar).

If anybody has a working solution please give us some information.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![farhan3](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@farhan3](https://forums.developer.nvidia.com/u/farhan3)\
**Post date:** [January 13, 2021, 7:14pm UTC](https://forums.developer.nvidia.com/t/use-gmsl-camera-with-python/49529/7 "2021-01-13T19:14:20Z")

</div>

Has anyone figured this out? I’m having the same problem.

---

<div class="post-metadata">

**Author:** ![user129570](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@user129570](https://forums.developer.nvidia.com/u/user129570)\
**Post date:** [January 17, 2022, 9:10am UTC](https://forums.developer.nvidia.com/t/use-gmsl-camera-with-python/49529/8 "2022-01-17T09:10:20Z")

</div>

From reading through the forums it seems noone has had any success getting data from GMSL cameras into Python on Jetson devices. I wish I knew this earlier – we will probably go completely IP cameras and use only the GBE connections as a result.

If you discover anything, please share here!
