Tuesday, April 17, 2007

processing.org

Lango pointed me in the direction of this site and it is really interesting. It allows you to produce small applications, I have only tried the examples at this point in time. That is really easy and worth a look. (PS I downloaded to a Mac)

Am going to spend a couple of hours trying it out, and am going to
make short notes. What I am trying to achieve is:
- get the camera recognised by the program
- capture one frame from the camera
- have the program identify the pixels of that frame
- capture a second frame
- have the application differenciate between the 2 frames
- set a ratio of difference between the 2 frames
- if the ratio is above the threshhold to open an image

This should visually allow me to see if it is working.

Quick notes on Processing as I read through
- open source
- tested on mac and window platforms mostly
- Processing code is converted to java when "run" is enabled.


Exporting:
Can be exported as a Java Applet to run on the web, can also
be exported as an application to run on window, linux and mac.

- if it is exported as an applet, it can be run on the web,
now while I don't want to use this on the web, the fact that
it exports with an index page makes me think that I can modify the code further on as
I am comfortable with html. (an alterenative to using processing is flash,
which I don't know either, so David wants to use Flash and as he is our
coder, all is good). I just want to know how to do it, and I
am allocated to Reseach and documentation, and this allows us
to all see alternate routes we could take.

- any changes to the indes are lost when a sketch is exported SO
- copy the applet html file from Processing, libraries and export to the root of the sketch folder

- applets are easier than applications, hence guess what I will trial
- applets have security restrictions built in, can only connect to the computer running the program unless it is "signed"
to find out more on this I will need to go to Sun's documentation (will do this later)
- need to avoid people pressing escape as it will be passed, so it is necessary to avoid this.


A Cartesian coordinate system is used, originating from the upper left corner.
e.g. a coordinate of x and y values will start from the top left.
Processing also allows for 3D drawing and the z position at 0 is in the centre of the screen
and minus positions will move the position of the object backwards.

3 levels of programming modes
Basic (beginners), Continuous (looping)

http://processing.org/exhibition/index.html
for images

MOVING OVER TO

http://webcamxtra.sourceforge.net/

COMPUTER VISION FOR ARTISTS
Shadow Monster
was the first example that I open and it uses hands to create monstors on a screen, really cool but takes a while to download!!
by Phil Worthington at the Royal College of Art
http://www.worthersoriginal.com/viki/#page=shadowmonsters


The Legible City by Dirk Groeneveld
Manhattan version (1989), Amsterdam version (1990), Karlsruhe version (1991)
This allows a visitor to ride a bike through a representation of a city.
This site allows you to watch high or low resolution videos.

http://www.jeffrey-shaw.net/html_main/show_work.php3?record_id=83


This is a really informative site, if only I had downloaded the webcam extra for Director!!!
http://sweb.cityu.edu.hk/sm3117/index.htm


OK this is where my fun finished!! Downloaded jMyron for video capture etc and I can not find a way of copying it into the processing folders.
Hum.... hoping that someone out there is reading this and can help.
(Ps this is a few hours work)

No comments: