Face Landmark

Detect faces, head direction and expressions (smile, jaw open, blink) from the camera.

AI VisionMicroPythonC++

Face Landmark tracks 468 points on a face, the direction of the head and facial expressions, so a program can react to a smile or a blink.

Before you start

  • Add the Face Landmark extension to your project. Every program starts with its enable block, which starts the camera and loads the model.
  • The camera image comes from an ESP32-CAM or from your browser webcam. The first run downloads the model (about 2 MB), so it takes a moment.
  • Detection runs in the browser while you test. Generated C++ uses the ArduinoJson library to read results.

Blocks

Drawing the blocks…

Tips

  • Use events ("when ... is detected") for things that should react to the camera and value blocks inside a loop for things you check over time.
  • Lighting matters: a bright, even light on the subject gives much steadier results.
  • Face the camera and keep the whole face in view; glasses and strong shadows lower accuracy.
Face Landmark — OMS Parts