Image Classification

Name what the camera sees using a ready-made model that knows 1000 everyday object categories.

AI VisionMicroPythonC++

Image Classification uses a pre-trained MobileNet model that recognises 1000 common object categories, with no training needed.

Before you start

  • Add the Image Classification 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 14 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.
  • The model gives one best guess for the whole picture, so show one object at a time.
Image Classification — OMS Parts