GithubHelp home page GithubHelp logo

nulldozer / librealsense Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intelrealsense/librealsense

0.0 1.0 0.0 2.48 MB

:camera: Cross-platform camera capture for Intel® RealSense™ F200, SR300 and R200

License: Apache License 2.0

Makefile 0.20% Shell 0.68% C 17.77% C++ 80.44% Prolog 0.06% QMake 0.86%

librealsense's Introduction

librealsense

[ ![Release] release-image ] releases [ License license-image ] license

Platform Build Status
Linux and OS X Build Status
Windows Build status

Librealsense is a cross-platform library (Linux, OSX, Windows) for capturing data from the Intel® RealSense™ F200, SR300 and R200 cameras. This effort was initiated to better support researchers, creative coders, and app developers in domains such as robotics, virtual reality, and the internet of things. Several often-requested features of RealSense™ devices are implemented in librealsense, including multi-camera capture.

Developer kits containing the necessary hardware to use this library are available for purchase at this link. This project is separate from the production software stack available in the Intel® RealSense™ SDK, namely that librealsense only encompasses camera capture functionality without additional computer vision algorithms.

Librealsense is experimental and not an official Intel product. It is subject to incompatible API changes in future updates. Breaking API changes are noted through release numbers with semver.

Librealsense requires two external dependencies, GLFW3 (all platforms) and libusb-1.0 (Mac/Linux). These dependencies should be gathered through manual steps that are enumerated as part of this readme file (i.e. these packages must be installed with apt-get on Linux and Homebrew on OSX). GLFW is not required for the core library and is only used for examples.

Table of Contents

Compatible Devices

  1. RealSense R200
  2. RealSense F200
  3. RealSense SR300

Compatible Platforms

librealsense is written in standards-conforming C++11 and relies only on the C89 ABI for its public interface. It is developed and tested on the following platforms:

  1. Windows 8.1 (Visual Studio 2013 Update 5)
  2. Ubuntu 14.04.03 LTS x64 (GCC 4.9 toolchain)
  3. Mac OS X 10.7+ (Clang toolchain)

Neither libuvc nor V4L2 backends have been validated on Ubuntu 12.04 LTS or Ubuntu 15.10, and several attempts to bring cameras up on these platforms have been problematic due to the requirement of a patched uvcvideo driver. It may be possible to compile and run librealsense on other platforms. Please file an issue or submit a pull request if the library has been successfully ported to a platform.

Supported Languages and Frameworks

  1. C - Core library API exposed via the C89 ABI
  2. C++ - Single header file (rs.hpp) wrapper around C API, providing classes and exceptions

Functionality

  1. Native streams: depth, color, infrared
  2. Synthetic streams: rectified images, depth aligned to color and vice versa, etc.
  3. Intrinsic/extrinsic calibration information
  4. Majority of hardware-specific functionality for individual camera generations (UVC XU controls)
  5. Multi-camera capture across heterogeneous camera architectures (e.g. mix R200 and F200 in same application)

Firmware Update

All RealSense™ cameras ship with proprietary firmware. This firmware is periodically updated with critical bugfixes, however librealsense does not currently provide functionality to upload new firmware. A supported update path is available on Windows 8.1 and Windows 10 systems via the Intel® RealSense™ DCM (Depth Camera Manager). Installing the DCM on a supported machine with an attached camera will automatically flash the latest firmware released by Intel.

Installation Guide

librealsense communicates with RealSense™ devices directly via the UVC and USB protocols. It does not link against the RealSense SDK™ runtime. Most of the library source code is platform agnostic, but there is a small UVC abstraction layer with platform-specific backends, including:

  • A video4linux2 backend which provides kernel-space access to UVC devices on Linux.
  • A libuvc backend which provides user-space access to UVC devices on Linux and Mac OS X (built with libusb).
  • A Windows Media Foundation backend which provides kernel-space access to UVC devices on Windows 8.1 and above.

New Users: A comprehensive installation guide is available here

Hardware Requirements

Developer kits containing the necessary hardware to use this library are available for purchase at this link. In addition, several consumer tablets and laptops with integrated cameras may also function, such as the HP Spectre x2 with R200.

Developer kits require USB 3.0. Not all USB host chipsets are compatible with librealsense, although it has been validated with recent generations of the Intel Host Controller chipset. An exhaustive list of incompatible hardware is not presently provided. On x86, a Haswell or newer architecture is recommended.

Documentation

Formal documentation for librealsense is incomplete and may contain the occasional inaccuracy. Please send us feedback via the Github issue tracker about areas that are unclear or which need to be improved.

A comprehensive suite of sample and tutorial applications are provided in the /examples subdirectory. For new users, it is best to review the tutorial series of apps which are designed to progressively introduce API features.

License

Copyright 2015 Intel Corporation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

librealsense's People

Contributors

sgorsten avatar ddiakopoulos avatar leonidk avatar aaborkar avatar bobdavies2000 avatar radfordi avatar

Watchers

Daniel Kokoszka avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.