Gender-Aware Digital Signage in 30 Min
by KimY21 in Circuits > Cameras
70 Views, 1 Favorites, 0 Comments
Gender-Aware Digital Signage in 30 Min
Build a digital signage system that detects who's watching and changes its content accordingly. Using AI face detection and gender estimation, the display automatically switches between different videos depending on the viewer — and plays an idle loop when nobody is around. Works on any PC or laptop with a camera.
Supplies
Hardware:
- Windows PC, Mac, Raspberry Pi, or any Linux device
- USB or CSI Camera (not required for laptops with built-in camera)
- Monitor or display screen (not required for laptops)
Software:
- Grablo (grablo.co)
Quick Start
Want to skip the build and try it right away? Copy the pre-built project:
- Install the Grablo software on your PC or device from grablo.co/download
- Open this project in the Grablo Gallery and click "Copy to My Projects"
- Go to My Projects, open the copied project, and connect to your device
- Hit RUN and stand in front of the camera — the signage switches content based on who's watching
If you'd like to build it from scratch, follow the steps below.
Create Dashboard
Create a new project, name it "Gender-Aware Digital Signage," and select your device. Then create a dashboard with three widgets: a Camera widget for the live video feed, a Label showing the detected gender, and another Label displaying the current face area value. The camera takes up most of the screen, with the two labels on the side for monitoring.
Set Up Logic
This project uses 4 logics with 5 controls total. The first logic handles face detection — when the project starts, it initializes the camera, adds AI face detection to estimate gender, and continuously calculates the face area by multiplying face width by height. This face area acts as a simple proximity sensor: the closer the viewer, the larger the face appears on camera.
The second and third logics handle video playback. When the face area exceeds 5,000 pixels (meaning someone is close enough) and the AI estimates the viewer as male, it stops any currently playing video and starts the male-targeted video. A separate logic does the same for female viewers. Both use a 3-second hold time to prevent rapid switching when detection fluctuates between frames.
The fourth logic plays an idle video loop. When the face area drops below 5,000 pixels for 3 consecutive seconds — meaning the viewer walked away — it switches back to a default idle video.
Launch Your Project
Launch Your Project
- Open your project
- Connect to your device
- Hit RUN!
- Stand in front of the camera and watch the content change
Expected Results
- The camera feed appears on the dashboard
- When you approach the camera, the AI detects your face and estimates gender
- The appropriate video starts playing within a few seconds
- Walk away, and after 3 seconds the display switches back to the idle video
- The Gender and Face Area labels update in real time
Expand Your Project
Now that you have a working gender-aware signage system, here are some ideas to take it further:
- Add age estimation to play different content for different age groups
- Use multiple cameras to cover different viewing angles
- Add a viewer counter to track daily demographics
- Connect to an external display via HDMI for a full signage setup
- Combine gender and time-of-day to serve different content throughout the day
Troubleshooting
- Face not detecting: Ensure good lighting and position the camera at eye level. Avoid strong backlighting or shadows on the face.
- Gender estimation inaccurate: The AI works best with clear, frontal face views. Side profiles or partially covered faces reduce accuracy.
- Video switching too fast: Increase the 3-second hold time in the logic conditions to prevent flickering.
- Camera feed not showing: For USB cameras, try a different port. For CSI cameras on Raspberry Pi, check the ribbon cable connection.