Giter VIP home page Giter VIP logo

pupilcamcpp's Introduction

PupilCamCPP

interface for capture of Pupil labs cameras with C++

The framework handles the pupillabs cameras (https://github.com/pupil-labs/) with asynchronous input on windows It is based on pyuvc example by Pupil labs (https://github.com/pupil-labs/pyuvc)

Requirements:

The current cmake is linking against custom-named libraries, if you use off-the-shelf builds, you have to change the naming in the cmakelists.txt file, as well as change the included headers to the new locations!

Steps:

  1. Make sure that the header files are in correct locations, as specified in the CmakeLists.txt files and that the naming is consistent
  2. Build and link the library
  3. Enjoy

The example program builds an example to application. The code can be found in example/example.cpp

Known issues:

If you recieve an "Out of memory" error, reduce LIBUVC_NUM_TRANSFER_BUFS in libuvc_internal.h and recompile it.

I had no problems running 5 cameras at the same time with LIBUVC_NUM_TRANSFER_BUFS 8, but could not open more than two at the default setting. The included pre-built libraries include both versions of LIBUVC.

If one of the cameras crashes/is not working, the program may crash as a whole.

pupilcamcpp's People

Contributors

aplopski avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

nahalnrz

pupilcamcpp's Issues

Project name

Hey @themrx
My name is Pablo and I work for Pupil Labs. We have just come across your project and we think that it is a great contribution! @mattem86 has proposed to add your project to our community repository: pupil-labs/pupil-community#5

Before we do that, I would like to ask you to rename this repository to PupilCapture c++ or something similar that indicates that this is not the official Pupil Capture application. After doing that I will be happy to merge the above pull-request and add your project to the community contribution list.

Warm regards,
Pablo

Can't get stream control: Invalid mode (-51)

Hello,

I am running your code using opencv 3.3 and vc14 to get camera output from the 200Hz Pupil Labs AR/VR Add-on. But get the error: Can't get stream control: Invalid mode (-51). I tried reducing the resolution to 192x192 and got the project to run but then got locked up on Can't grab frame. Is there a reason this is happening?

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.