antima55 | adventures in reality

Jan/10

8

optimizing face projector software for ps3 eye

i have been working on how to get access to framerate, resolution and quality of both the movie file and the ps3eye capture so here comes an update on that.

to use ps3eye with processing i recommend using the newest of the old (pre 4.0) version of alex p’s windows driver. together with Den Ivanov’s ps3 eye processing library.

get the ps3 eye driver here:
http://codelaboratories.com/downloads/archive/
and the library here:
http://www.cleoag.ru/2009/11/23/ps3-eye-processing-library/

follow the install instructions closely!

to implement the ps3 eye library i needed to do some recoding as i left the jmyron library that i normally used for capturing and replaced it by ps3eye lib.
this was done by using the example that came together with the library files.
in the example i learned what general functions ps3eyelib uses:
import ru.cleoag.*;
PS3Eye p;
PImage img;

int cameraWidth = 640;
int cameraHeight = 480;
int cameraRate = 30;

p = new PS3Eye(this);
p.start(cameraWidth,cameraHeight,cameraRate);
img = createImage(cameraWidth,cameraHeight,RGB);

p.update();
p.imageCopy(img.pixels);
img.updatePixels();
image(img,0,0,width,height);

p.stop();

these replaces all the jmyron and m.etc tags found in the proc55ng sketch.

the next problem was that i had realized that my movieMaker only outputted files of approx 300 *300 pixels resolution.
even though the width and height is set to 640 * 480.
so i searched the reference and got the knowledge of movimaker types and quality.
then this thread helped me pick an ideal format and in the end i had exported my recorded movie in the format type of SORENSON and with the BEST quality.

here is the final upload consisting of the processing and py file plus the data folder:
FACE_PROJECTOR_PS3EYE.zip

RSS Feed

No comments yet.

Leave a comment!

<< paper animation on turntable

Redite by Patrick Boivin - a 20’s short from the future? >>