# RPi, camera module and face detection – possible?

**URL:** <https://discourse.processing.org/t/rpi-camera-module-and-face-detection-possible/31917>\
**Category:** Processing for Pi\
**Created:** [August 25, 2021, 8:32am UTC](https://discourse.processing.org/t/rpi-camera-module-and-face-detection-possible/31917 "2021-08-25T08:32:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![figle](https://avatars.discourse-cdn.com/v4/letter/f/3da27b/32.png) [@figle](https://discourse.processing.org/u/figle)\
**Post date:** [August 25, 2021, 8:32am UTC](https://discourse.processing.org/t/rpi-camera-module-and-face-detection-possible/31917/1 "2021-08-25T08:32:16Z")

</div>

Hello,

I just started out playing with Processing on macOS but ultimately I’d like to use Raspberry Pi for a bunch of potential projects. One idea is to use a camera module and face detection to drive visualisations beamed to multiple monitors (via HDMI splitters).

However, upon reading this and other forums, it seems not that straightforward, with compatibility issues, unmaintained libraries etc.

Could you let me know how easy it is to use Processing on RPi and how feasible is this platform for stuff like image analysis and general audio-visual work? I’d prefer not to have to hack too deep into RPi system to be able to run things as I’m a designer and would rather invest my limited programming skills and time into something that works and has a potential.

So, a more detailed questions:  
– Does Processing work on newest RPis?  
– Would installing Linux on RPi4 be better in the long run?  
– Can I use OpenCV on RPi for face detection/tracking on camera feed or is there another library?  
– Do you know of any multimedia/audio-visual/generative art projects driven by RPis/Processing?

Thank you!  
Alex

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [August 25, 2021, 2:00pm UTC](https://discourse.processing.org/t/rpi-camera-module-and-face-detection-possible/31917/2 "2021-08-25T14:00:48Z")

</div>

Hi @figle,

Welcome to the forum! 😉

> [@figle](#):
>
> Does Processing work on newest RPis?

Looking at the [Getting started](https://pi.processing.org/get-started/) page on the Processing for pi website, it looks like it’s supported on rpi 2, 3 and 3+. I don’t see why it shouldn’t work on a raspberry pi 4. Also the rpi 4 is much more powerful and seems adapted if you want to do sound/visual interactive work with some computation.

> [@figle](#):
>
> Would installing Linux on RPi4 be better in the long run?

The download link provided on the rpi processing website is actually a Raspbian OS with Processing installed. Most of the supported OSes are UNIX based and I think that there’s a Windows Iot something but Linux is the way to go! You can check them here: [The Top 23 Operating Systems for Raspberry Pi in 2023](https://www.fossmint.com/operating-systems-for-raspberry-pi/)

> [@figle](#):
>
> Can I use OpenCV on RPi for face detection/tracking on camera feed or is there another library?

Yes I think so, it’s listed in the [technical](https://pi.processing.org/technical/) page

For projects using RPis, maybe someone can provide some links 😉

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [August 25, 2021, 2:55pm UTC](https://discourse.processing.org/t/rpi-camera-module-and-face-detection-possible/31917/3 "2021-08-25T14:55:50Z")

</div>

See this previous discussion [P4 on Pi4 (is not a joke)](https://discourse.processing.org/t/p4-on-pi4-is-not-a-joke/31497) I have experience of using USB Camera but not the camera module.

---

<div class="post-metadata">

**Author:** ![figle](https://avatars.discourse-cdn.com/v4/letter/f/3da27b/32.png) [@figle](https://discourse.processing.org/u/figle)\
**Post date:** [August 26, 2021, 8:34am UTC](https://discourse.processing.org/t/rpi-camera-module-and-face-detection-possible/31917/4 "2021-08-26T08:34:58Z")

</div>

> [@monkstone](#):
>
> I have experience of using USB Camera but not the camera module.

I just wanted to make sure I won’t be digging myself into a hole by purchasing RPi, camera etc just to realise some things won’t work.

Are you on RPi 4? Have you tried installing OpenCV library and run the basic code? What USB camera are you using?

Many thanks.

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [August 26, 2021, 9:16am UTC](https://discourse.processing.org/t/rpi-camera-module-and-face-detection-possible/31917/5 "2021-08-26T09:16:20Z")

</div>

I have not tried to install OpenCV on my RaspberryPI4, I note there seems to be binary support for [linux-armv6f](https://github.com/atduskgreg/opencv-processing), since I prefer to use a 64 bit OS (ManjaroARM) that’s no good to me. The library does not seem to have been updated recently and things have moved on apace since then on the RaspberryPI front, you might be better looking outside processing for a solution.

---

<div class="post-metadata">

**Author:** ![monkstone](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/monkstone/32/64_2.png) [@monkstone](https://discourse.processing.org/u/monkstone)\
**Post date:** [August 26, 2021, 2:06pm UTC](https://discourse.processing.org/t/rpi-camera-module-and-face-detection-possible/31917/6 "2021-08-26T14:06:01Z")

</div>

Check this out [Add face recognition with Raspberry Pi | Hackspace 38 - Raspberry Pi](https://www.raspberrypi.org/blog/add-face-recognition-with-raspberry-pi-hackspace-38/) You could probably hook it up with [py5](https://discourse.processing.org/t/new-python-processing-project-py5) if you are keen to keep connection with processing.
