Macam ps3eye Mountain Lion


#21

hi @bakercp thanks for your reply.

i would love to try but am unfamiliar with how to use them. Im trying it on Xcode (opencv). Do you mind to guide me on this?

Would appreciate it a lot…=)


#22

Got it working perfectly in openframework. Except your ‘example’ codes , the frames are being freezes. Else the rest working good! I’ll have to figure out a way to merge with my OpenCV codes now.

Thanks @bakercp!


#23

I’ve realised that the image is in ofTexture format…is there a way for me to convert into ofxCvColorImage for further processing purposes?


#24

Ok found the issue. It’s because the output format from the Ps3eyeGrabber is in RGBA which are not supported/compatible with ofxCvColorImage. Conversion from the (yuv422 to rgb888) or (rgba to rgb888) is required.

Correct me if I’m wrong. Still working on this.


#25

@bakercp – thanks for the library! It looks awesome :slight_smile:

Unfortunately I just downloaded it and tried to compile your example, but got the error

error: allocating an object of abstract class type 'ofxPS3EyeGrabber'

I checked its parent classes (ofThread and ofBaseVideoGrabber), but it seems like all virtual methods are defined, so I’m not entirely sure what’s going on here :confused:

I filed the issue on your github.


#26

This is likely because of the change to const-correct methods in the base video grabber class. I don’t think I’ve updated the addon for the updates because they are only available in the master branch of openFrameworks. Feel free to update and issue a PR. I’ll likely keep them in a develop branch until the const-corrected base class changes are released with 0.9.0.


#27

Hi,

I’m trying to use macam for PS3 eye on OSX 10.9.5 but it doesn’t seem to be working. I’m just getting a frozen image from the camera. I’ve tried the modified driver above too, but no luck. Within the Macam application itself I get a decent feed(though it’s a bit jumpy). But within Max/ MSP and Jitter I’m just getting a frozen image. I’m using the camera for a motion tracking patch in max, but I ain’t gonna detect much motion with a frozen image! :frowning:

Anyway, I don’t suppose anyone here would know what the problem might be. Any help at all would be much appreciated.


#28

We wrote a new openFrameworks addon that no longer uses macam since it is not actively supported. If you use openFrameworks, you can try https://github.com/bakercp/ofxPS3EyeGrabber. If you are comfortable writing jitter externals you could adapt this code https://github.com/inspirit/PS3EYEDriver/ using the Max SDK http://cycling74.com/downloads/sdk/.

Alternatively, you could rig up a pretty simple openFrameworks app with the https://github.com/bakercp/ofxPS3EyeGrabber and https://github.com/astellato/ofxSyphon to ship the textures over to Max using https://github.com/Syphon/Jitter/releases/.


#29

Thanks bakercp. I’ve never written any max externals before and all the ‘programming’ I’ve ever done has been in audio programming languages like max and csound. So for now, I don’t think I’ll be able to do any of those things! But maybe this is a lesson for me to learn to use openFramesworks for the future! I was really just hoping there was another updated driver out there somewhere…


#30

Thanks for your work, I have still one question :
now that the ps3eye is working under Yosemite with the OF API how, based on that, can we produce a OS X driver like the Quicktime macam component ?
I will be happy to help, but I do now how to create a OS X driver (but I know how to code in Obj-C and C and use XCode).


#31

That’s great to hear Ps3eye still work on latest Mac OS. By the way, I’m very appreciated if any guys could help to compile the pkg or dmg install file.

Thanks in advanced.


#32

Hi @chinhhut I don’t quite understand your request. What do you mean exactly?


#33

I bet he asked for dmg/pkg file in order to be able to run PS3Eye directly on MacOS. Would be much appreciated if one could make something like that, without getting involved into compiling and programming processes.


#34

It’s pretty easy to make a camera viewer app (just compile the example) – much more difficult to make a camera driver so other programs can use the camera feed.


#35

I’m not that deep into current situation about available PS3Eye drivers, but I guess there’s no available solution to make camera work with Skype?


#36

@bakercp – wow that ofx library (https://github.com/bakercp/ofxPS3EyeGrabber) just saved me. i had been struggling with the older library for hours and yours worked right out of the box for multicam on osx 10.10. woo!


#37

Does anybody know how to calculate the max number of cams I can run over usb3.0?


#38

You will be stuck with the same number of cams you can run with USB 2. The backward compatibility does not give you the bandwidth of USB 3, but uses a second chip to give you USB 2 with all the limitations.


#39

Well I have 7 working at 320x240.
Made a little bullet cam.
but unfortunately they bite the dust at 640x480. Anyone have a workaround for this? Would be greatly appreciated. Really want that 640x480 quality! I tried to init/destroy them all on the trigger but that caused some weird behavior and led to undesired latency.

        std::shared_ptr<ofxPS3EyeGrabber> videoGrabber = std::shared_ptr<ofxPS3EyeGrabber>(new ofxPS3EyeGrabber());
        videoGrabber->setDeviceID(i);
        videoGrabber->setDesiredFrameRate(camFrameRate);
        videoGrabber->initGrabber(camWidth, camHeight);
        videoGrabber->update();

        while(!videoGrabber->isFrameNew()){
            cout << "waiting for " << i << "..." << endl;
            videoGrabber->update();
        }
        cout << "new frame " << i << "..." << endl;
        string frame = "frames/" + ofToString(picture_counter) + "/" + ofToString(i) + ".png";
        aFrameImage[i].clear();
        aFrameImage[i].allocate(640, 480, OF_IMAGE_COLOR);
        aFrameImage[i].setFromPixels(videoGrabber->getPixelsRef());
        aFrameImage[i].saveImage(frame);
        videoGrabber->close();

#40

@bakercp – any insight you can offer on the previous post? really hungry for that VGA quality :]