# Is there a Julia package for using the Raspberry Pi camera?

**URL:** https://discourse.julialang.org/t/is-there-a-julia-package-for-using-the-raspberry-pi-camera/117032
**Category:** General Usage
**Created:** [July 14, 2024, 2:21pm UTC](https://discourse.julialang.org/t/is-there-a-julia-package-for-using-the-raspberry-pi-camera/117032 "2024-07-14T14:21:36Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![brianguenter](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brianguenter/32/29519_2.png) [@brianguenter](https://discourse.julialang.org/u/brianguenter)
#### Post date: [July 14, 2024, 2:21pm UTC](https://discourse.julialang.org/t/is-there-a-julia-package-for-using-the-raspberry-pi-camera/117032/1 "2024-07-14T14:21:36Z")

</div>

I want to do image processing in real time using the Raspberry Pi global shutter camera. Is there a Julia package that wraps the the Raspberry camera libraries?

---

<div class="post-metadata">

### Author: ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)
#### Post date: [July 14, 2024, 3:40pm UTC](https://discourse.julialang.org/t/is-there-a-julia-package-for-using-the-raspberry-pi-camera/117032/2 "2024-07-14T15:40:43Z")

</div>

Not really. This one looks pretty dead: [GitHub - stemann/Cameras.jl: A Julia interface for cameras](https://github.com/stemann/Cameras.jl)

And [GitHub - JuliaIO/VideoIO.jl: Reading and writing of video files in Julia via ffmpeg](https://github.com/JuliaIO/VideoIO.jl?tab=readme-ov-file) . But I don’t think it allows to grab video input.

Google for “VFL (video for Linux)”, perhaps you find a way to grab frames. Or a C library. You can call C from Julia directly.

Perhaps access [libcamera](https://www.raspberrypi.com/documentation/computers/camera_software.html) from Julia? But it might have only a C++ interface, then you would have write your own wrapper using [CxxWrap](https://juliahub.com/ui/Packages/General/CxxWrap) .

As a first try you could also call an external application like

```julia
rpicam-still --encoding png --output test.png

```

and store the output in a RAM disk. Check how many FPS you get with this method.

---

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [July 15, 2024, 7:57am UTC](https://discourse.julialang.org/t/is-there-a-julia-package-for-using-the-raspberry-pi-camera/117032/3 "2024-07-15T07:57:19Z")

</div>

I’ve always wanted to try my hand at one of the (imho) coolest early Julia-days projects, @mbauman’s traffic speed monitoring system:

> **[GitHub - mbauman/TrafficSpeed: Using a cell phone video to detect traffic speeds](https://github.com/mbauman/TrafficSpeed)**
>
> Using a cell phone video to detect traffic speeds. Contribute to mbauman/TrafficSpeed development by creating an account on GitHub.

and would have hoped things had become easier in the last 9 years, but maybe not 😃
