# Raspberry Pi V2 CSI camera works, but not with Cheese Ubuntu 18.04 Jet Pack 4.5

**URL:** <https://forums.developer.nvidia.com/t/raspberry-pi-v2-csi-camera-works-but-not-with-cheese-ubuntu-18-04-jet-pack-4-5/167618>\
**Category:** Jetson Nano\
**Created:** [February 4, 2021, 8:27am UTC](https://forums.developer.nvidia.com/t/raspberry-pi-v2-csi-camera-works-but-not-with-cheese-ubuntu-18-04-jet-pack-4-5/167618 "2021-02-04T08:27:14Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![DaneLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/danelll/32/14043_2.png) [@DaneLLL](https://forums.developer.nvidia.com/u/DaneLLL)\
**Post date:** [February 4, 2021, 8:59am UTC](https://forums.developer.nvidia.com/t/raspberry-pi-v2-csi-camera-works-but-not-with-cheese-ubuntu-18-04-jet-pack-4-5/167618/3 "2021-02-04T08:59:04Z")

</div>

Hi,  
Pi camera V2 has to be run through _nvarguscamerasrc_. For launching it in OpenCV, please refer to the samples:

> [@\[Gstreamer\] nvvidconv, BGR as INPUT](https://forums.developer.nvidia.com/t/gstreamer-nvvidconv-bgr-as-input/83355/4):
>
> Hi, We have tried the following python code on TX2/r32.1/OpenCV3.4.1 import sys import cv2 def read\_cam(): cap = cv2.VideoCapture("nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080,format=(string)NV12, framerate=(fraction)30/1 ! nvvidconv ! video/x-raw, format=(string)I420 ! appsink") if cap.isOpened(): cv2.namedWindow("demo", cv2.WINDOW\_AUTOSIZE) while True: ret\_val, img = cap.read(); img2 = cv2.cvtColor(img, cv2.CO…

> [@OpenCV Video Capture with GStreamer doesn't work on ROS-melodic](https://forums.developer.nvidia.com/t/113147/3):
>
> Hi, Once you confirm the source is valid, you may also try this simple code: import sys import cv2 def read\_cam(): cap = cv2.VideoCapture("nvarguscamerasrc ! video/x-raw(memory:NVMM), width=(int)1920, height=(int)1080,format=(string)NV12, framerate=(fraction)30/1 ! nvvidconv ! video/x-raw, format=(string)BGRx ! videoconvert ! appsink") if cap.isOpened(): cv2.namedWindow("demo", cv2.WINDOW\_AUTOSIZE) while True: ret\_val, img = cap.read(); cv2.ims…

---

_[View the full topic](https://forums.developer.nvidia.com/t/raspberry-pi-v2-csi-camera-works-but-not-with-cheese-ubuntu-18-04-jet-pack-4-5/167618)._
