# Getting the e-con systems camera eCam20\_CUTX2 to work with detectnet-camera?

**URL:** <https://forums.developer.nvidia.com/t/getting-the-e-con-systems-camera-ecam20-cutx2-to-work-with-detectnet-camera/67680>\
**Category:** Jetson TX2\
**Created:** [November 21, 2018, 8:36pm UTC](https://forums.developer.nvidia.com/t/getting-the-e-con-systems-camera-ecam20-cutx2-to-work-with-detectnet-camera/67680 "2018-11-21T20:36:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zontar.thing.from.venus](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zontar.thing.from.venus](https://forums.developer.nvidia.com/u/zontar.thing.from.venus)\
**Post date:** [November 21, 2018, 8:36pm UTC](https://forums.developer.nvidia.com/t/getting-the-e-con-systems-camera-ecam20-cutx2-to-work-with-detectnet-camera/67680/1 "2018-11-21T20:36:06Z")

</div>

Hi there,

I am having no success in trying to get the e-con System camera to work with the detectnet-camera application. I have changed the #DEFINE from -1 to 0 to indicate third party camera.

I have managed to get the camera to work using the demo program from e-con systems as well as the e-con systems gstreamer example. This camera uses UYVY format.

Not sure if anyone else has successfully gotten detectnet-camera working with an e-con system camera. If you have, would love to hear what’s required. (Or if you have other suggestions on how to proceed).

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [November 22, 2018, 5:41am UTC](https://forums.developer.nvidia.com/t/getting-the-e-con-systems-camera-ecam20-cutx2-to-work-with-detectnet-camera/67680/2 "2018-11-22T05:41:45Z")

</div>

Hi,

jetson\_inference use GStreamer to open the camera source.  
Could you try to run this command on the console first?  
[url][https://github.com/dusty-nv/jetson-utils/blob/4e94fb28d33b131bd03300810bd52f3abe28659b/camera/gstCamera.cpp#L353[/url]](https://github.com/dusty-nv/jetson-utils/blob/4e94fb28d33b131bd03300810bd52f3abe28659b/camera/gstCamera.cpp#L353%5B/url%5D)

Thanks.

---

<div class="post-metadata">

**Author:** ![zontar.thing.from.venus](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@zontar.thing.from.venus](https://forums.developer.nvidia.com/u/zontar.thing.from.venus)\
**Post date:** [November 22, 2018, 6:10pm UTC](https://forums.developer.nvidia.com/t/getting-the-e-con-systems-camera-ecam20-cutx2-to-work-with-detectnet-camera/67680/3 "2018-11-22T18:10:38Z")

</div>

thanks for the reply.

I spent a cozy afternoon with the GStreamer docs and figured it out. I reworked the GStreamer string and now all is well.

For anyone else interested, this is the change I made;

In line 351 of gstCamera.cpp (Jetpack 3.3 version);

```auto
ss << "v4l2src /dev/video" << mV4L2Device << " ! ";
ss << "video/x-raw, format=(string)UYVY, width=(int)" << mWidth;
ss << ", height=(int)" << mHeight;
ss << " ! videoconvert ! video/x-raw, formatRGB, width=(int)" << mWidth;
ss << ", height=(int)" << mHeight << ", ! appsink name=mysink";

```

(NOTE: I retyped that and didn’t copy/paste from the actual code, so hopefully no syntax errors in there).

---

<div class="post-metadata">

**Author:** ![nadeemm](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/nadeemm/32/367020_2.png) [@nadeemm](https://forums.developer.nvidia.com/u/nadeemm)\
**Post date:** [October 18, 2021, 6:30pm UTC](https://forums.developer.nvidia.com/t/getting-the-e-con-systems-camera-ecam20-cutx2-to-work-with-detectnet-camera/67680/4 "2021-10-18T18:30:53Z")

</div>

Closed on October 18, 2021, 6:30pm UTC


