# Access video stream programatically on Raspberry Pi

**URL:** <https://discuss.bluerobotics.com/t/access-video-stream-programatically-on-raspberry-pi/19965>\
**Category:** General Discussion\
**Created:** [April 3, 2025, 8:38am UTC](https://discuss.bluerobotics.com/t/access-video-stream-programatically-on-raspberry-pi/19965 "2025-04-03T08:38:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zukane](https://avatars.discourse-cdn.com/v4/letter/z/977dab/32.png) [@Zukane](https://discuss.bluerobotics.com/u/Zukane)\
**Post date:** [April 3, 2025, 8:38am UTC](https://discuss.bluerobotics.com/t/access-video-stream-programatically-on-raspberry-pi/19965/1 "2025-04-03T08:38:01Z")

</div>

Hello. We wish to perform some lightweight image processing on the video feed in Python using OpenCV. We are able to access the video feed using gstreamer on the topside computer. However, we would like to access the stream on the ROV’s Raspberry Pi instead. Considering the stream (or streams) are being “sent out” from the Pi, I assume there is a way to access it. Does anyone have any tips?

---

<div class="post-metadata">

**Author:** ![tony-white](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.bluerobotics.com/tony-white/32/18385_2.png) [@tony-white](https://discuss.bluerobotics.com/u/tony-white)\
**Post date:** [April 3, 2025, 8:14pm UTC](https://discuss.bluerobotics.com/t/access-video-stream-programatically-on-raspberry-pi/19965/2 "2025-04-03T20:14:25Z")

</div>

Hi @Zukane -  
If you setup your video stream as RTSP (rather than UDP) you can access from OpenCV onboard the pi, or from your topside with the same code. You may want to lower the resolution and frame rate to not overtax the Pi 4 CPU.
