← Back

ofxRealsense2

github.com/hiroMTB/ofxRealsense2 · @hiroMTB
OF 0.10 Depth Sensing Hardware Interface

openFrameworks addon fo intel Realsense2

29 12 Last commit 6y ago Created 8y ago

Forks

Forks pushed to more recently than hiroMTB/ofxRealsense2 itself, plus any admin-confirmed fork with commits of its own — worth checking if you're hitting issues with the original.

icq4ever/ofxRealsense2 by @icq4ever · ★ 2 · pushed 2y ago

README

Screenshot

Build Status Build status

ofxRealsense2

This repos is openFrameworks addon for Intel® RealSense™ SDK 2.0. You can test your D400 series camera quickly. If you dont have device, you cann still playback BAG files and see how it works (for example performance, postprocessing, depth quality, etc)

Development period

Version

TODO

Install Realsense SDK

Follow the official instalaction here and check you can launch realsense viewer.

Using oF Poroject Generator



This repo does not contain any project file. Please generate project file by yourself. Project Generator needs addon_config.make for setting library properly. This repo contain follwing two .make. Please rename your favorite one to addon_config.make.

Static library vs Shared library



osx + static lib (.a)

Realsense static lib for OSX is only avairable by compiling source code by yourself. But generated .a file is large over 180MB. So I dont put it in this repo. Please compile it by yourself(git LFS later maybe).

osx + shared lib (.dylib)

Shared lib is small enough (9.8MB) and you can find in this repo under /libs directory. Release version only. However because of osx app package system, you can not excute .app by double click when you use shared lib. You may need additional process to make standalone app. More details in this [thread in oF forum](https://forum.openframeworks.cc/t/dynamic-libraries-for-osx-addon/19908/11 ).

Compile your own Realsense library

Compiling realsense library is straight forward. 1. download zip source from Intel® RealSense™ SDK 2.0 github repo 2. cmake (app or ccmake) 3. set option (like BUILD_SHARED_LIBS) and generate project files 4. build with Xcode or Visual Studio etc

BAG file (rosbag)

With Realsense Viewer you can record/playback depth & color stream to bag file. SDK also support rec & playback. But recorded bag file is super big like 1GB for 10 sec. Please record your own bag file and put it in /examplePlayback/bin/data folder. (btw why it's so big? OpenNI's .oni file is way too small like 30MB for 10 sec).

Hardware

Unplug and plug camera again if you see strange data.

Notice

libusb in osx

Get this addon

HTTPS
SSH