Color Detector – Nanospark Colour Detector App

Posted by on Jul 15, 2013 in Apps, Color Detection, Features, Home | Comments Off on Color Detector – Nanospark Colour Detector App

Color Detector – Nanospark Colour Detector App Purchase your Nanospark (Read why you should below.)

One thing we like to highlight about Nanospark is how with it we can use the features on iOS devices to work with whatever sensor or actuator is wired to the Nansopark Controller.  A perfect example of this is the Colour Detector.  This is an app we developed to use the camera on your iPod touch, iPhone, or iPad as the foundation for a low-cost vision system.

Like other color detecting apps it uses the camera to gather the RGB and HSV values of whatever is in the target area of the camera feed.  However, Colour Detector takes things to the next level in a few ways.  First of all, it lets you re-size and relocate the target area within the camera selection view, so you can zero in on exactly what you want to evaluate.

color detector

Colour Detector does more than read RGB and HSV of the camera feed, it uses those values to trigger digital outputs according to what the feed sees.

In addition to seeing and reporting the RGB, the app allows you to set the values you expect to see and alerts you as to whether the target area is within that spec.  For instance, in the picture below since the black transistor missing, the color RGB average of the target area changes.  The app alerts you to this, in the output display, with a green (in spec) or red (out of spec) visual cue.

The most powerful feature is the connection of the camera feed with outputs on the Nanospark Controller.  I’m writing this on a warm summer day, so lets imagine we have cups of ice cream coming down a conveyor.  An iPod touch is placed above the conveyor after the lids are put on, watching for any missed lids.  The value for output 1 on the Colour Detector app is set to watch for a brown and white lid.  The app flashes green in the output display and plays a melodic ding for the first 150 cups that pass by.  As Colour Detector watches cup 151 (without a lid) go by it flashes red, and activates a cylinder, which deftly pushes cup 151 onto a reject chute, where an operator is waiting to correct the problem (spoon in hand?).

You may enjoy seeing Nanospark’s Colour Detector in action on YouTube:

Comments are closed.