My First REAL Touch of Processing

For several years now (since seeing the presentation at FITC in Toronto), I have had an interest in the capabilities of Processing. I have only ever had time to dabble in it and just get a feel for what other people have done.

Last week I was able to find some time for playing with a couple of the libraries that interest me in order to see what they can do. I grabbed the OpenCV Processing library and a couple others and started playing with my video camera. I don’t know if the issues that I had are related to the fact that I am on a Macbook Pro with Windows Vista on it but for the life of me I couldn’t get my webcam to work with the OpenCV capture methods. But I managed to get it up and running with a different library and then grabbed the incoming image with OpenCV to process it.

Take a look and let me know what you think: www.marcpelland.com/application.windows.zip (you need a webcam). It isn’t much, but it was good to finally get in there and write some code in Processing. I don’t really know if I am going to pursue this much further after discovering that I cannot access the webcam VIA a java applet. If there is anyone out there with more java / processing experience that may have a way to use this type of app online I would be very greatful.

thanks, marc

Playing with Color Picker and Threshold

Color Picker Experiment ExampleIn light of the fact that I know my motion tracking needs a lot of work, I decided to start trying different methods for getting and working with information from my webcam.

Last night (and a little over lunch today) I threw a couple quick experiments together to see what it would look like, and I think that I might try this out with the video when I got home tonight.

The first example comes in the form of a basic color picker that lets you select the color of a pixel from within the image (on the top left). Once you have selected a color, use the slider on the right to control the threshold ばいあぐら 購入 通販.

The second example is very similar to the first, it just uses a different sampling method for the color that it is going to use with the threshold. To try this tool, draw a box (from top left to bottom right) over the region of the image where you would like to get your sampling from.

This was a very quick and dirty experiment to see what I could get out of a bitmap with some basic functions, so please forgive my source. I will post more once I get it cleaned up tonight and start trying to work it into my motion detection application.

Motion Tracking and Papervision

A couple of days ago I posted my first attempt at motion tracking in AS3 using a webcam and promised that I would play a little bit more with it. Well, I got a little bit anxious and before refining the tracking code I decided to put it to use.

You may have seen the video of head tracking using the Nintendo Wii. That video inspired me to try my hand at the same concept using Flash, Papervision 3d, and my newly discovered love for trying to get motion tracking / facial recognition into Flash.

Motion Tracking and Papervision

As such, I have created this example which is my first step in creating some sort of tracking interaction with a 3d scene. if you would care to see a little bit more detail about what is going on, hit X to see the video and W to see the framerate. Stay tuned for more updates as I update the tracking code. Once again, I will post the source when it is a little further along.

** please note that you require a webcam to take advantage of the motion tracking, if you do not have a camera the scene’s camera is simply controlled by the mouse.

Webcam Motion Tracking Fun v1

I have been doing some recent experiments in ActionScript 3 so I thought that I would start posting them. Most of my recent work has been client work using Papervision, but I found a little time to play with my webcam over the weekend.

I have a couple of uses planned for this and will post them when they are done but here is the first iteration.

[kml_flashembed movie=”http://www.marcpelland.com/wp-content/uploads/2008/05/camera_motion_test1.swf” height=”240″ width=”320″ /]

With the help of a diff equation from Forrest Briggs, I managed to capture the specific area of movement within the webcam frame. I will continue working and post source once it is complete. This little project is helping me understand the workings of the bitmap data objects in as3.