Logo
  • Features
  • Educators
  • What's New
  • Blog
  • Showcase
  • About us
  • Contact
Try it now!
Face Sensing
Face Sensing

Face Sensing

Why use Face Sensing?

The Face Sensing extension is developed by Scratch team in Scratch Lab. We introduce it to Gandi IDE.

You can use it to make animated costumes and games that interact with your face.

When you are using the Face Sensing blocks, only your computer can sense your face. None of your data is stored or sent to Gandi IDE, Cocrea, Scratch or any other site.

The technology behind the Face Sensing blocks is not perfect. It is best at seeing faces that are brightly lit and close to the camera. It will often recognize faces even if they are partly hidden by a mask, glasses, hat, headscarf, or other coverings. It does not do well at seeing faces that are far away, in the dark, or hidden.

Modules

Module
Description
Actions
- Make a sprite move and change size with the face detected by the camera.
Events
- Events dispatched by the face movement

Functions and Definitions

Actions

Before using this extension, make sure that you have a camera connected to your computer.

The camera will be turned on when you install this extension. The extension will only detect one of faced

Move the sprite to the position of an organ of the face.

image
Selection
Description
organs
There are eight options: - nose - mouth - left eye - right eye - between eyes - left ear - right ear - top of head

Set the direction of the sprite to the direction of face tilt.

image

Get the value of face tilt. The return value will be a direction value.

image

Set the size of sprite to the size of face on the stage.

image

Get the value of face size. The return value will be a size number.

image

If you want the sprite to move with your face, you should build a loop. For example:

image

Events

When the face tilts in left or right, the event will be dispatched.

image
Selection
Description
direction
Which direction does the face tilt in? There are two options: - left - right

When the sprite touches an organ on the face, the event will be dispatched.

image
Selection
Description
organs
There are eight options: - nose - mouth - left eye - right eye - between eyes - left ear - right ear - top of head

When a face is detected, the event will be dispatched.

image

This block will return the result of face detection.

image

Credits

Face Sensing is developed by Scratch Team in Scratch Lab.

Face Sensing - Scratch Lab

lab.scratch.mit.edu

💡
If you have any questions or suggestions, find us in the discord channel: https://discord.gg/U3nyveCvRa
Logo

Designed by 2ndR with love

Discord