|
-
Webcam Color Detection
Hi
So I'm working on a school project that will work so that a webcam can scan a grid of colors and determine what color it is and there by playing a sound tha is connected to that color. You can then create music by drawing different colors on a grid.
I know that this is doable in AS3, I just don't know how exactly since im kind of new to this.
So i managed to import the webcam image to flash, and that's all. How do I Proceed?
* How do i get the webcam to detect colors? (Green, Blue, Red, Yellow and Black)
* How do i connect these color detections to start playing a sound/movieclip?
If anyone has the answers for this I'm really gratefull.
Thanks in advance! 
This is the code id used to import the webcam.
Code:
import flash.media.Camera;
import flash.media.Video;
var camera:Camera = Camera.getCamera();
if (camera != null) {
video.attachCamera(camera);
} else {
trace("You need a camera.");
}
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|