Quantcast
Viewing all articles
Browse latest Browse all 40524

ofxVideoGrabberPtgrey (or Point Grey cameras on new Windows systems in general)

I ran into this same error on Linux and was able to work around it. This was with a recent GigaE Blackfly. Hopefully when I get a moment I can document how. But in case I forget the steps involved...

  1. Changing the ofxVideoGrabberPtgrey. to default to the FlyCapture header rather than the dc1394.
  2. moving entirely from the example codeblocks project into a project I created from scratch using the OF 'projectGenerator'.
  3. Creating a addon_config.mk for the ofxVideoGrabberPtygrey addon and setting it so that it ignores the libs/FlyCapture directory it came with and instead loads the includes from /usr/lib/flycapture (the pointgrey installed sdk location).
  4. Modify ofxVideoGrabberFlyCapture.cpp/.h to reference getPixelsRef. This is the reason for the error you ran into.
  5. Modified ofxVideoGrabberFlyCapture.cpp and commented out all of the camera settings changes (leaving with the standard defaults).

from addon_config.mk

linux64:
    ADDON_SOURCES_EXCLUDE += src/ofxVideoGrabberDc1394.cpp
    ADDON_INCLUDES_EXCLUDE += libs/FlyCapture/%
    ADDON_INCLUDES += src
    ADDON_CFLAGS = -I/usr/include/flycapture
    ADDON_LDFLAGS = -lflycapture

From addons/ofxVideoGrabberPtgrey/src/ofxVideGrabberPtgrey.h

#if defined( TARGET_OSX ) || defined( TARGET_LINUX )
#include "ofxVideoGrabberFlyCapture.h"
//#include "ofxVideoGrabberDc1394.h"
#elif defined( TARGET_WIN32 )
#include "ofxVideoGrabberFlyCapture.h"
#endif

to ofxVideoGrabberFlyCapture.h:

ofPixels & getPixelsRef();

to ofxVideoGrabberFlyCapture.cpp

ofPixels & ofxVideoGrabberPtgrey::getPixelsRef(){
    // return videoPixels;
}

Viewing all articles
Browse latest Browse all 40524

Trending Articles