# Audience detector demo package

**URL:** <https://community.info-beamer.com/t/audience-detector-demo-package/921>\
**Category:** Announcements\
**Created:** [July 20, 2020, 2:34pm UTC](https://community.info-beamer.com/t/audience-detector-demo-package/921 "2020-07-20T14:34:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![infobeamer-fw](https://community.info-beamer.com/user_avatar/community.info-beamer.com/infobeamer-fw/32/3_2.png) [@infobeamer-fw](https://community.info-beamer.com/u/infobeamer-fw)\
**Post date:** [July 20, 2020, 2:34pm UTC](https://community.info-beamer.com/t/audience-detector-demo-package/921/1 "2020-07-20T14:34:51Z")

</div>

## Intro

There’s a new demo package available now that shows how the [Raspberry Pi camera module](https://www.raspberrypi.org/products/camera-module-v2/) can be used to detect faces and trigger actions. The package works by sending the raw raspivid camera frames into a minimal detector using [libfacedetection](https://github.com/info-beamer/libfacedetection). The detector returns a list of detected faces with coordinates and a confidence value. Right now this package uses the detection to trigger a configurable UDP event.

[![Import](https://community.info-beamer.com/uploads/default/original/1X/d9a4b0d4ca45648b4dc0a9085f098a20031c39ca.png)](https://info-beamer.com/use?url=https://github.com/info-beamer/package-audience)

## Example usage

Combined with the [Touch Player](https://info-beamer.com/pkg/10957), this package can be used to interrupt a looping presentation when detecting at least one face. For that, import the Touch Player package as well as this package into your account. Create a new setup based on the Touch player and add the Audience detection package as a child:

![image](https://community.info-beamer.com/uploads/default/original/1X/76410aa34910a36de7875c2aed582a2a9c77e68e.png)

Configure the Detector like this:

 ![image](https://community.info-beamer.com/uploads/default/original/1X/d7409915b4f793d1783e1d97e4880d7b5d611ebf.png)

This will essentially simulate a touch event on the coordinate 10, 10 every time a face is detected. Within the Content Configuration you can now use Fullscreen touch event like this:

 ![image](https://community.info-beamer.com/uploads/default/original/1X/00877aad6a1e0d1927bfc5a0d72e896e3954f22d.png)

If you have a camera module attached to the Pi and install this package the Index page will stay on the screen. When detecting a face, the Touch player will switch over the the configured page.

## Ideas

That might not be a very realistic use case, but the detector could be used to automate other signage setups. Any idea welcome. If you need help with customization, please [get in contact](https://info-beamer.com/contact) or have a look at the [package source code](https://github.com/info-beamer/package-audience).
