Detect Multiple Colors

One of the features that makes ez-robot so special is the camera that can detect faces, objects, glyphs, qr codes and multiple colors. For this tutorial, we will use the JD Humanoid. However, this process can easily be applied to any ez-robot configuration.

What You Will Need

  • JD, Six, Roli, AdventureBot or Developer Kit
  • Windows PC with EZ-Builder installed


Instructions

One of the features that makes ez-robot so special is the camera that can detect faces, objects, glyphs, qr codes and multiple colors.

For this tutorial, we will use the JD Humanoid.

However, this process can easily be applied to any ez-robot configuration.

Load the most recent JD project from the EZ-Cloud Robot AppStore

Connect to the camera

Connect to your robot

In the camera control, choose tracking

Choose Multicolor

On the multicolor tab, delete all multi colors currently listed

Add & edit a Custom Color

Give this color a name

Hold your object in front of the camera without any other objects in the image with the similar color

Rotate the color wheel to isolate your color range

Adjust the saturation to remove other similarly bright colors

Press Save

Add & edit a custom color

Give this color a name

Hold your object in front of the camera without any other objects in the image with the similar color

Rotate the color wheel to isolate your color range

Some colors and brightness may require you to adjust the saturation and luminance to remove other similarly bright colors

Press Save

Camera Configuration

Select Scripts tab>br />
Select Tracking Start script to edit

Open the cheat sheet tab and locate the Auto Position Action named Point

Type: sayezbwait("I see a " +

Select Variable Tab

Locate and select Camera Object Color variable ($CameraObjectColor)

Type Stop() to put the robot back in a resting position after running the action

Now save the script and return back to the ez-builder main screen

You can now place the learned objects in the camera and the robot will respond



Last updated 5/14/2015

Select Your Product

This lesson applies to multiple robot products. Select your product below for related lessons.

Revolution JD
Revolution JD


Revolution Six
Revolution Six


Revolution Roli
Revolution Roli


EZ-B v4 & IoTiny
EZ-B v4 & IoTiny


AdventureBot & BattleFlipper
AdventureBot & BattleFlipper