Skip to content

Image Processing

Run image recognition (AR marker, color, face, QR code) on the phone camera feed in smabo-brain, and control smabo's eyes, servos and driving based on the results.

This page is the guide for the "Image Processing" node on the roadmap below.

This guide assumes you have completed the smabo-brain and smabo-app setup.

This page explains the Image Processing feature of smabo.

Specifically, you will:

  • Identify target objects from the camera image
    • Visualize the results in smabo-web
    • Control smabo's eyes based on the results

No parts are needed this time.

There are no parts to print this time.

There is no assembly this time.

There is no wiring this time.

The finished robot does not change this time.

Follow the startup procedure here.

Then open the Vision tab in smabo-web.

Image recognition is configured in the Vision tab of smabo-web. Enable enabled under Detection to turn image recognition on.

Enabling detection in the smabo-web Vision tab


Several kinds of recognition are available. Change Mode to recognize the following:

  • AR markers
  • Objects of a specified color
  • Faces
  • QR codes

Choosing the detection mode: AR marker, color, face, or QR code


With Min size you can set:

  • the minimum size of objects to recognize in the image (objects at least this size are recognized)

When the preview is enabled, a frame of the minimum size is shown at the bottom right.

Minimum detection size setting and preview frame

Under Behaviors, smabo can be controlled based on the recognition results.

Specifically, it:

  • controls smabo based on the position and image size of the largest recognized object

Behaviors settings that act on the detected object position


The available kinds of control are:

  • Eye control
    • smabo's eyes follow the recognized object
  • Servo control
    • servos follow the recognized object
    • a servo can be set for each of the horizontal and vertical directions
    • see Head Rotation for details
  • Two-wheel drive robot control
    • the robot follows the recognized object
    • the robot moves forward or backward to keep the object at the size set in target size
    • see Mobile Robot for details

For example, for eye control,

  • set smabo-app's face mode to Follow.

Setting the smabo-app face mode to Follow

Then bring the target object in front of the camera and smabo's eyes follow it.

Next, the following node on the roadmap is explained: