GithubHelp home page GithubHelp logo

schneider-engineering / openpnp-capture Goto Github PK

View Code? Open in Web Editor NEW

This project forked from openpnp/openpnp-capture

0.0 1.0 0.0 2.43 MB

A cross platform video capture library with a focus on machine vision.

License: MIT License

CMake 1.88% QMake 0.01% C++ 5.95% Batchfile 0.01% Shell 0.73% C 38.95% Roff 0.64% HTML 12.63% CSS 0.64% JavaScript 0.61% Java 3.75% Assembly 28.41% PHP 4.84% Objective-C 0.20% Objective-C++ 0.75%

openpnp-capture's Introduction

OpenPNP Logo

openpnp-capture

OpenPnP Capture is a cross platform video capture library with a focus on machine vision. It's goals are:

  • Native camera access on Windows, Linux and Mac. Implemented with DirectShow, V4L2 and AVFoundation respectively.
  • Named device enumeration.
  • Strong, repeatable unique IDs.
  • Format control with support for at least YUV and MJPEG. MJPEG will allow the use of multiple USB cameras on a single hub.
  • Auto and manual exposure control.
  • Auto and manual focus control.
  • Simple, common C wrapper for the listed APIs.

Status

Windows

Feature Implemented
Device Enumeration Yes
Capturing Yes
MJPEG formats Yes
YUV formats Yes
Exposure control Yes
Focus control Yes / Untested
Zoom control Yes
Gain control Yes
White balance control Yes
Framerate control No

Linux

Feature Implemented
Device Enumeration Yes
Capturing Yes
MJPEG formats Yes
YUV formats Yes, YUYV/YUV2
Exposure control Yes
Focus control Yes / Untested
Zoom control Yes
Gain control Yes / Untested
White balance control Yes
Framerate control No

OSX

Feature Implemented
Device Enumeration Yes
Capturing Yes
MJPEG formats Yes (dmb1)
YUV formats Yes
Exposure control Yes / Experimental
Focus control Yes / Experimental
Zoom control Yes / Experimental
Gain control Yes / Experimental
White balance control Yes / Experimental
Framerate control No

TODO

  • support for re-enumeration.

Building OpenPnP Capture

Dependencies

  • CMAKE 3.1 or better
  • MAKE (osx, linux)
  • Visual Studio 2013 + NMake or Ninja Build (windows)
  • NASM for building libjpeg-turbo (linux)

Build instructions (Windows)

Run the batch file 'bootstrap.bat' and choose the desired build system (VisualStudio/nmake or Ninja). Make sure the compiler (Visual Studio) is in the search path.

Go to the build directory and run nmake or ninja to build the library and the test application.

Build instructions (OSX)

Run 'bootstrap_osx.sh'. Run make.

Build instructions (Linux)

Run 'bootstrap_linux.sh'. Run make.

Supporting other platforms

  • Implement all PlatformXXX classes, like in the win or linux directories.
  • PlatformContext handles device and internal frame buffer format enumeration.
  • PlatformStream is responsible for capturing and decoding the camera stream to a 8-bit per channel RGB frame buffer.
  • Statically link external dependencies.

Downloading Binaries

openpnp-capture is still under development, but you can download releases that are built automatically from https://github.com/openpnp/openpnp-capture/releases/latest.

openpnp-capture's People

Contributors

peejay avatar trcwm avatar vonnieda avatar

Watchers

 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.