# Get raw input from CSI interface

**URL:** <https://forums.developer.nvidia.com/t/get-raw-input-from-csi-interface/163835>\
**Category:** Jetson Nano\
**Tags:** camera\
**Created:** [December 16, 2020, 1:25pm UTC](https://forums.developer.nvidia.com/t/get-raw-input-from-csi-interface/163835 "2020-12-16T13:25:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![surfingsoccerdad](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@surfingsoccerdad](https://forums.developer.nvidia.com/u/surfingsoccerdad)\
**Post date:** [December 16, 2020, 1:25pm UTC](https://forums.developer.nvidia.com/t/get-raw-input-from-csi-interface/163835/1 "2020-12-16T13:25:16Z")

</div>

We have a device that’s connected to the CSI port on a Jetson Nano eMMC. We’re using the IMX219 driver to get the images from the CSI interface … but it seems as though the driver is applying gain settings to the image, possibly variably - it’s an interesting halo effect, with the center of the halo in the middle of the image. We’ve used a Keysight analyzer to verify that the images that are being transferred to the CSI port are 100% the way we want … but after going through the driver the halo makes the image unusable.

We would like to simply get the raw images from the interface. Is there any way to do this?

Thank you -  
Rick

---

<div class="post-metadata">

**Author:** ![Honey\_Patouceul](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/honey_patouceul/32/389777_2.png) [@Honey\_Patouceul](https://forums.developer.nvidia.com/u/Honey_Patouceul)\
**Post date:** [December 16, 2020, 6:13pm UTC](https://forums.developer.nvidia.com/t/get-raw-input-from-csi-interface/163835/2 "2020-12-16T18:13:04Z")

</div>

You can get raw frames from V4L API, but IMX219 is a bayer sensor, so you would get bayer RG10 format (10 bits values being saved as 16 bits values):

```auto
# Capture one frame 
v4l2-ctl --set-fmt-video=width=1920,height=1080,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 -d /dev/video0 --stream-to=imx219.RG10

```

However, I can’tell any RG10 viewer. You would have to debayer yourself for getting a YUV or RGB format and further process frames.  
Gstreamer can only handle 8 bits bayer formats, so years ago I did a [quick and dirty attempt to offline convert](https://forums.developer.nvidia.com/t/is-there-a-parameter-for-enable-disable-the-tx2-on-board-camera/56970/6) into bayer 8 bits (this one was from BG10 to bggr, but same may be used for RG10 to rggb) that can be processed by gstreamer (you may read the TRM for Nano and your L4T release for right pixel format in order to make it clean).

It might be easier to keep Argus for debayering but remove ISP config. Try moving file `/var/nvidia/nvcam/settings/camera_overrides.isp` into another directory and restart argus or reboot.

---

<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 15, 2021, 4:09pm UTC](https://forums.developer.nvidia.com/t/get-raw-input-from-csi-interface/163835/5 "2021-10-15T16:09:17Z")

</div>

Closed on October 15, 2021, 4:09pm UTC


