Do it yourself bio-robotics: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
by [[James Bryan Graves]] | by [[James Bryan Graves]] | ||
When asked to assist how to quickly recognize a plant with a webcam I | When asked to assist how to quickly recognize a plant with a webcam I remembered an Apple WWDC presentation called "Find my iCone" an app that tracked an orange construction pylon using it's color. | ||
I already had some web/Javascript code to do some chromakey (greenscreen) swapping, so I just re-purposed it. However, tracking the correct color of say "purple flowers" needed to be a little less fined grained then #ef0114 (for example, I have no idea what "color" that is by looking at it's hex values), so I grabbed a [http://chir.ag/projects/ntc/ JS library] to print colors as words. | I already had some web/Javascript code to do some chromakey (greenscreen) swapping, so I just re-purposed it. However, tracking the correct color of say "purple flowers" needed to be a little less fined grained then #ef0114 (for example, I have no idea what "color" that is by looking at it's hex values), so I grabbed a [http://chir.ag/projects/ntc/ JS library] to print colors as words. |
Revision as of 16:05, 22 November 2015
Recognizing a plant in a pinch
When asked to assist how to quickly recognize a plant with a webcam I remembered an Apple WWDC presentation called "Find my iCone" an app that tracked an orange construction pylon using it's color.
I already had some web/Javascript code to do some chromakey (greenscreen) swapping, so I just re-purposed it. However, tracking the correct color of say "purple flowers" needed to be a little less fined grained then #ef0114 (for example, I have no idea what "color" that is by looking at it's hex values), so I grabbed a JS library to print colors as words.
Here's the code:
<!DOCTYPE html> <h1>I don't see anything.