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.
Roadmap
Section titled “Roadmap”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.
Overview
Section titled “Overview”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
Required Parts
Section titled “Required Parts”No parts are needed this time.
3D Printing Parts
Section titled “3D Printing Parts”There are no parts to print this time.
Assembly
Section titled “Assembly”There is no assembly this time.
Wiring
Section titled “Wiring”There is no wiring this time.
Finished Result
Section titled “Finished Result”The finished robot does not change this time.
Operation
Section titled “Operation”Startup Procedure
Section titled “Startup Procedure”Follow the startup procedure here.
Then open the Vision tab in smabo-web.
Image Recognition
Section titled “Image Recognition”Image recognition is configured in the Vision tab of smabo-web. Enable enabled under Detection to turn image recognition on.

Several kinds of recognition are available. Change Mode to recognize the following:
- AR markers
- Objects of a specified color
- Faces
- QR codes

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.

Control Based on Object Recognition
Section titled “Control Based on Object Recognition”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

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.

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: