Home β€Ί Giving Your Robot Eyes
πŸ”₯ Module 02 Β· Advanced

Giving Your Robot Eyes

What if you could teach a computer to see? That's Computer Vision! It's how your phone recognizes your face, how a self-driving car spots a stop sign, and how we're going to give our robot superpowers. Let's build something that can see the world. πŸ€–πŸ‘€

πŸ›‘οΈ Safety Check: Smart Devices, Smart Rules
When your robot has eyes (a camera!), it's important to be a good digital citizen. A robot should never record people without them knowing. And it should never share personal info like names, faces, or where you live without a parent's permission. Smart eyes need smart rules!
πŸ•ΆοΈ

How Computers "See"

A camera just sees a giant grid of pixelsβ€”boring numbers! To make sense of it, we use special tools. It's like having magic sunglasses. One pair might only let you see circles, another only lets you see straight lines. A computer tries on different "digital glasses" to find shapes, colors, and faces in a picture.

Let's play! Click the buttons to put on different magic sunglasses and see what a computer sees.

How Your Phone Knows It's You

Facial recognition sounds like magic, but it's really just a few clever steps:

  1. πŸ“Έ
    Find the Face: First, the computer scans the picture to find a shape that looks like a face. Simple!
  2. πŸ“
    Map the Landmarks: Next, it finds key points (landmarks!) like the corners of your eyes, the tip of your nose, and the edges of your mouth.
  3. πŸ“
    Measure the Distances: Finally, it turns your face into a secret code of numbers by measuring the distances between all those landmarks. That code is totally unique to you!
πŸ“Ί How do computers learn to recognize objects? This TED-Ed video breaks it down!
πŸ’» Mission: Robot Vision

Find the Stop Sign!

Just like a computer turns your face into a list of landmarks, a robot's camera turns what it sees into a list of objects. Now, let's help our robot read its list! Your mission: complete the Python code to find the `stop_sign`!

Your scan results will appear here.

πŸš€ Level Up Challenge!

Want a tougher mission? Real-world data is more complex. to upgrade your code and search for an object with a specific shape and a high confidence score!

🧠

Try a Real AI Model!

Ready for a *whoa* moment? We can use a powerful pre-trained AI model called TensorFlow.js right here in our browser. This is the real deal! Upload a photo from your computer (don't worry, it stays on your device and isn't sent anywhere) and see what the AI can recognize.

Upload an image to see what the AI finds!

🏑 Parent Corner: Computer Vision at Home

Want to see computer vision in action together? Grab your phone and try the Google Lens or Apple Live Text features. Point your camera at a plant, a sign in another language, or even a math problem. You're using the same powerful tech we're exploring here! It's a great way to show how this "robot skill" is already part of our everyday world.

πŸ”— Learn More

Ready to go even deeper? These are the tools the pros use. Explore them with a grown-up!