← Back

ofxIdsPeak

github.com/thegreeneyl/ofxIdsPeak · @thegreeneyl
OF 0.12 Hardware Interface Utilities Video/Camera

openFrameworks addon for IDS uEye+ / GenICam cameras via the **IDS peak genericSDK** (C++).

0 0 Last commit 1mo ago Created 5mo ago

README

ofxIdsPeak



openFrameworks addon for IDS uEye+ / GenICam cameras via the IDS peak genericSDK (C++).

Requirements



Install



Clone into your openFrameworks addons/ directory:

cd /path/to/of_v0.12.1_linux64_gcc6_release/addons
git clone https://github.com/thegreeneyl/ofxIdsPeak.git


The folder name must be ofxIdsPeak (matches addon_config.mk).

Usage



Add ofxIdsPeak to your project's addons.make, include ofxIdsPeak.h, and use ofxIdsPeak::Grabber.

Example app: omnivisu — clone into apps/myApps/omnivisu next to this addon.

ofxIdsPeak::Grabber grabber;

void ofApp::setup() {
    // Defaults: ProcessAll + RGBA (backward compatible)
    grabber.setup();
}

void ofApp::update() {
    grabber.update();
    if (grabber.isFrameNew()) {
        const ofPixels& px = grabber.getPixels(); // for OpenCV / CPU processing
        // cv::Mat mat(px.getHeight(), px.getWidth(), ...);
    }
}


Processing modes



ModeCapture threadupdate()Use when
ProcessAll (default)Converts every frameOne queued frame per update() (FIFO)Recording, metrology, deterministic CV
LatestOnlyDrops stale SDK buffers before convertDrains queue, keeps newestLive view, tracking, minimum latency
GUI: processing mode parameter (0 = ProcessAll, 1 = LatestOnly).

Output formats



FormatofPixels typeTextureOpenCV notes
RGBA (default)OF_IMAGE_COLOR_ALPHAGL_RGBAExtra channel vs BGR; fine for display
RGBOF_IMAGE_COLORGL_RGBLess bandwidth than RGBA; good for color CV
MonoOF_IMAGE_GRAYSCALEauto (e.g. GL_R8 on GL 3.3)Fastest path for grayscale CV
GUI: output format parameter (0 = RGBA, 1 = RGB, 2 = Mono).

Changing output format at runtime reallocates buffers and reconfigures the IPL converter (no restart required).

Low-latency preset (OpenCV-oriented)



Does not change camera exposure/WB or application vsync — only grabber policies:

grabber.applyLowLatencyPreset(ofxIdsPeak::OutputFormat::Mono);
// or OutputFormat::RGB for color tracking
grabber.setup();


Equivalent to:

grabber.setProcessingMode(ofxIdsPeak::ProcessingMode::LatestOnly);
grabber.setOutputFormat(ofxIdsPeak::OutputFormat::RGB);


For lowest display latency, disable vsync in the app (ofSetVerticalSync(false)).

Counters



Build notes



addon_config.mk searches common Linux install locations for peak/peak.hpp and peak_ipl/peak_ipl.hpp, and links ids_peak / ids_peak_ipl. If your install is elsewhere, set IDS_PEAK_ROOT in the app config.make or extend the find paths in addon_config.mk.

License



MIT — see LICENSE.

Get this addon

HTTPS
SSH