Ultrasonic Distance icon Ultrasonic Distance — Displays HC-SR04 ultrasonic distance readings in ARC; scriptable via GetPing(), pausable, sets a variable with multiplier, optional NMS output Try it →

ARC Pro

Upgrade to ARC Pro

ARC Pro is more than a tool; it's a creative playground for robot enthusiasts, where you can turn your wildest ideas into reality.

#1  

I believe that ARC uses AForge.NET for this. AForge is a C# implementation of OpenCV.

I would have the student build an ARC skill plugin using AForge (the DLL is included in the ARC install) demonstrating color recognition. There should be plenty of examples online for the student to follow. By making a plugin, JD would be able to use this to demonstrate the code.

https://www.google.com/search?q=aforge+color+recognition&oq=aforge+color+recognition&aqs=chrome..69i57.7135j0j4&sourceid=chrome&ie=UTF-8

Sample code for download https://www.dropbox.com/s/vz6n7f4d9og5cau/Color%20Detection%20Using%20AForge.NET.zip?dl=0

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#2  

A forge is not used for color tracking - only the blob function. Rather than writing our own, I'm a huge fan of the work from Andrew.

The algorithm is pretty straight forward. Loop through the image memory and count the blobs of colors:)

Even though aforge isn't used for the algorithm. There's a lot of information in aforge website for color filtering etc... I would focus on that.

Author Avatar
South Africa
#3  

Thank you!