Is face recognition coding the same as true machine learning?
What You'll Need
Want to build a smart face detection game with your child? No engineering degree needed. This 30-minute project shows elementary students how to use a webcam to build an AI that recognizes faces and reads expressions β using PictoBlox's drag-and-drop blocks, no typed code required.
What You'll Need
- Hardware: A laptop or desktop with a working webcam.
- The Software: PictoBlox in the browser, or the free desktop app. STEMpedia says PictoBlox is free for individuals and non-commercial use (as of Oct 2026).
- An Account (optional): A free account lets you save projects. STEMpedia says it doesn't knowingly collect information from kids under 13, so if PictoBlox asks you to sign in, a parent should create the account.
Parent tip
Parent reality check: If you aren't a coder, play with it for 5 minutes first. Once you add the Face Detection extension, its blocks get their own section in the block list, so they're easy to find.
Scratch vs. PictoBlox: Which Should You Choose?
- Ages 5β7: Start with ScratchJr, a free tablet app with picture blocks that builds logic foundations first
- Ages 8+: Try PictoBlox, which adds AI blocks like face detection and expression recognition to Scratch-style coding
What is PictoBlox?
PictoBlox is a block-coding tool from STEMpedia that looks and works like Scratch, with extra extensions for AI and robotics. It runs in the browser or as a desktop or tablet app. Besides ready-made AI blocks like Face Detection, it has a Machine Learning Environment where kids can train their own models, so they learn not just how to use AI, but how AI learns from data. Kids who get hooked on the robotics side can later join a Bay Area robotics competition team.
How to Do It
Step 1: The Setup
- Open PictoBlox and start a Block Coding project. Use the browser version at pictoblox.ai or the desktop app.
- Add the Face Detection extension. Click the "Add Extension" button (bottom-left corner) and select Face Detection. The first time, it downloads the face models and shows "Model loaded successfully." The extension works in Stage Mode and doesn't need Wi-Fi once loaded.

Step 2: Prepare Your Stage
- Delete the default mascot (Tobi).
- Add a new Sprite. Pick something expressive like a robot face or a colorful emoji.

Step 3: The "AI Brain" (The Logic)
- Start. Drag the
When green flag clickedblock. - Eyes on. Add
Turn (on) video on stage with (0)% transparency. - The loop. Use a
foreverblock so the AI never stops "looking." - The scan. Inside the loop, add
analyse image from (camera).

Step 4: Tracking & Feedback
- Move. Drag a
go to x: y:block into the loop. Dropget (x) of face (1)into the x slot andget (y) of face (1)into the y slot. Now the sprite will follow your head! - Speak. Add
say (get expression of face (1)).
Step 5: Test it Out!
Click the green flag. Smile, frown, or look shocked. The extension recognizes six basic expressions, so watch your sprite name each one in real time. Try a "mixed" face and see what it guesses.
π Beyond the Code: Where is this AI in the Real World?
Now that your child has seen how a computer "sees" their face, itβs the perfect moment to discuss the world around them. AI recognition isn't just in PictoBlox; itβs everywhere:
- On Phones: Many phones unlock when they recognize your face.
- In Photo Apps: Some photo apps group pictures by the people in them.
- At the Airport: Some airports use face scans to check who you are at security or boarding.
Parent tip
The "Parent Talk" on privacy: While these tools are convenient, they come with a trade-off. Ask your child: "If a camera can recognize you at the airport, what else could it know about where you were and when?"
The Lesson
AI recognition is a powerful tool for convenience, but it is also a tool for tracking. Teach your child that their face is "personal data"βjust like their home addressβand they should be mindful of where and when they choose to share it.
Ready to Go Deeper? Train Your Own AI from Scratch
Face detection showed you how powerful pre-built AI can be β but what if your child could teach a computer to recognize anything they choose? That's exactly what machine learning is: training your own custom AI model from the ground up, using nothing but a webcam and curiosity.
Try one of these free home experiments next:
- πββοΈ No-Code AI Movement Tracking β Train an AI to recognize your child's poses and gestures using Google Teachable Machine β no coding, no downloads
- π Dance Move Judge β Train Teachable Machine's Pose Project on your kid's dance moves and play a game where the AI calls them out
- πΆ AI Puppy Detective: Image Recognition β Use your pet's photos to teach a computer to spot the difference between your dog and an imposter β a simple first ML project for ages 7+
FAQ
What age is this face recognition AI project for?
Ages 8 and up. PictoBlox adds real AI features like face detection and emotion recognition, which suit kids 8+. For ages 5β7, start with ScratchJr first: it's a free tablet app with picture blocks that builds the logic foundations they'll use later.
Do kids need an account to use PictoBlox's face detection?
Not necessarily. PictoBlox is free for personal use, and its Face Detection extension runs on your computer without Wi-Fi once the models load. A free account lets you save projects. If PictoBlox asks you to sign in, a parent should create the account, since STEMpedia doesn't knowingly collect information from kids under 13.
Sources
Checked October 2026.





%20(300%20x%20250%20px)%20(1).avif)





-min.avif)











