Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

Macam ps3eye Mountain Lion

$
0
0

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();

Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>