We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Pages: 1 2 
Some PS3 Eye test results (Read 8974 times)
Re: Some PS3 Eye test results
Reply #15 - Nov 29th, 2009, 1:39pm
 
I finally got it working!

I uninstalled and reinstalled the alexP deriver v3.0.0.0901. The found new hardware wizard pops up and I told it to find the driver in
Program Files/AlexP/Driver/PS3EyeCamera(i believe it is an .inf)

After that I ran the ps3 eye test applet.
Then I ran AMCAP and was able to get it to preview the video. I believe this is where you can set the resolution and framerate as well.

Then I had these dll's in my processing exe folder
DSVL.dll
JMyron.dll
myron_ezcam.dll
PS3EyeLib.dll

I also had to have these two in my processing folder or system 32(they are the c++ and c runtime libraries that were not included in my windows xp) I downloaded them from www.dll-files.com. They may already be in your system 32.
msvcp71.dll
msvcr71.dll

Its up and running, if you have any similar problems let me know.
Re: Some PS3 Eye test results
Reply #16 - Nov 29th, 2009, 2:06pm
 
benchmarks
I am running the myron_fasterSimpleCamera on a xp32bit laptop 1.6ghz core duo laptop with 1gb ram and I get approximately 22fps with 640x480 video. I only get 13fps if I do the regular simpleCamera example. A modern laptop should be able to get a full 30 fps.

By the way to change any settings for video capture, run AmCap and go to options/ Video Capture Pin and select your settings.

Hope this helps. Thanks again liudr
Re: Some PS3 Eye test results
Reply #17 - Nov 29th, 2009, 2:31pm
 
I just put online updated PS3Eye Library with all JMyron blobs stuff inside. It's on beta now, something cant be working. I tested all samples from original JMyron library, they work ok )

http://ps3eye.googlecode.com/files/PS3EyeMyron.zip

all methods in PS3EyeMyron are the same as in JMyron, and now they work with PS3 Eye on 640x480. I'm not satisfied with fps, will check more ways to improve it later.

below code how to init PS3EyeMyron. dont forget about 'frameRate'  inside 'start' method.

Code:

PS3EyeMyron m;

void setup(){
 size(640,480);
 m = new PS3EyeMyron();
 m.start(width,height,30);


need testing this library. )

UPDATE: make sure you have only one PS3Eye library installed in you sketchbook folder. use PS3EyeMyron for blobs detection or just PS3Eye for fast image capture.
Re: Some PS3 Eye test results
Reply #18 - Nov 30th, 2009, 5:13am
 
Den
again: Thnx a lot. I am going to test it second half of this week, dont have time before that.
Any specifics comments/requests for testing ?
Re: Some PS3 Eye test results
Reply #19 - Nov 30th, 2009, 8:48pm
 
I've tested the PS3Eye cam on two additional machines. Results are encouraging (fast FPS on slow machines) and interesting: On both systems the PS3EyeTest included by the AlexP driver can get up to 60FPS at 640*480. On one system (P4 2.8 2G ram integrated video), using P2D renderer gives up to 50FPS when the capture setting is at 50FPS. Using Java2D (default) renderer, it only gets around 12FPS. On the other system (P4 3.2 HT 2G ram dedicated video), using P2D gives up to around 48.5 FPS and using Java2D gives 50FPS, both at 50FPS capture settings. I used total time and total frames captured to calculate FPS, not total frames in one second. I suspect that P2D, although supposedly faster, somehow fails to take advantage of a dedicated video card. I hope someone else has an answer. Both machines run xp 32bit and are both up to date on Java. I'll try some more machines to see if there is a pattern. Say maybe for HT or dual core processors Java2D is better but for single core P2D is better.
Re: Some PS3 Eye test results
Reply #20 - Dec 1st, 2009, 1:47pm
 
Wow, over 50fps, thats pretty great, I will try this out later this week some time. I am just looking for a solid 30fps running on a laptop. Good work.
Re: Some PS3 Eye test results
Reply #21 - Dec 1st, 2009, 3:37pm
 
gcolefla,

I've done more testings (just capturing with Den's library and AlexP's driver) on 32-bit xp systems. It seems that a 2.8GHz P4 is all you need for stable 50FPS (sorry I don't have any slower systems to test with). For those of you that want to make a multitouch screen with this cam, you can just buy an older desktop PC and use it instead of a nicer one or laptop. It keeps the PC from being tossed into a garbage can. BTW, I'm a CPU collector ^_^
...
Re: Some PS3 Eye test results, Recording Question
Reply #22 - Dec 5th, 2009, 1:16am
 
Awesome benchmarking, I still have yet to play around with the library because all of my final projects are due next week. I think I might just stick with my 20fps now on the laptop. I don't think p2d is an option because the shapes I am drawing on top of the video need to look crisp.

Has Anyone recorded a video of the sketch they are running? I was trying the moviecapture command but it was killing my framerate. Does Den's library support capture (I  don't believe jmyron does).
Re: Some PS3 Eye test results
Reply #23 - Dec 5th, 2009, 10:05am
 
I've done frame by frame to .jpg files. I have a different goal as I said before, analyzing motion in physics labs. I think there's ought be software you can find to merge frames into movies.

On the other hand, the standard processing video library seems to have movie maker class:
http://processing.org/reference/libraries/video/index.html
You should be able to use this together with PS3Eye. But the movie maker seems to only record the processing window. I'm interested in this as well so let me know if you find a way to create movies.

By the way, how long are your movies going to be

BTW, since your laptop is slow, you may want to find a ram drive program so that you can use a part of your ram as a disk drive. This way you can store your movies to that drive fairly quickly. Just don't forget to copy them to hard drive once you're done. Ram drives reset each time the computer reboots.
Re: Some PS3 Eye test results
Reply #24 - Dec 5th, 2009, 10:54am
 
well the moviemaker dropped my framerate down from 19 to roughly 3 fps. My computer can't handle both the capture and then creating a compressed quick time movie. Maybe if I try to do uncompressed and then it wouldn't have to compute anything. The jpg's could work but I am trying to be able to record ~ 20minutes of footage at a time. I am also having problems with framerates, the moviemaker will only add one frame when it runs through the program and then compresses the movie to run those frames at 30fps. I will be playing with video today though so I will let you know.
Re: Some PS3 Eye test results
Reply #25 - Dec 5th, 2009, 3:44pm
 
20minutes*30FPS*60=36000 files. This seems too much for single jpg files. Have you tried screen capture programs? Sometimes they can save videos from a program window as well.
Re: Some PS3 Eye test results
Reply #26 - Dec 5th, 2009, 4:56pm
 
I wanted to record with FRAPS but it only sees sketches running in opengl mode. I tried that and the sketch dropped down to 4 fps.

Thanks for posting P2D info, now my sketch runs at just under 30fps. In the spring P2D drew ugly lines through shapes, but now it is fixed Smiley

I was trying den's library but i get a weird "cannot find a class or type named “PS3EYE”.

Do you know any good programs for screen capture that are not resource hogs?
Re: Some PS3 Eye test results
Reply #27 - Dec 6th, 2009, 10:08am
 
I'm not sure. I used one such program in the past summer but I can't remmeber its name. I need to dig up some old files to find an install file. If you just search free screen capture, you should find a bunch of them. Try a few out.
Re: Some PS3 Eye test results
Reply #28 - Dec 7th, 2009, 9:10am
 
I tried a  few programs and I found camstudio to work the best for me. So far I can only get it to run run with microsoft video 1 though. As long as i can edit it, it should be ok.
Re: Some PS3 Eye test results
Reply #29 - Jan 1st, 2010, 2:33am
 
Liudr thanks for the great research!

Just an update we have worked on a updated PS3 Eye Java/Processing Wrapper which you can get in the latest CL-Eye Platform SDK @codelaboratories.com/downloads/

This should work more consistently be a bit more reliable.
Pages: 1 2