Giter Site home page Giter Site logo

uca-phantom's Introduction

uca-phantom

libuca plugin for the Vision Research Phantom high-speed cameras.

Documentation

Since this is still a private repository, the public documentation for this project is hosted on a separate Github Repository. To view the Documentation source code jump to uca-phantom-doc. Or visit the indepth documentation directly at uca-phantom Documentation!

User information

Changing the acquisition mode

The acquisition mode determines if the sensor operates in binning, standard and HS mode. This has a few implications on the operation: first we cannot determine in which mode the camera is currently operation, therefore you cannot rely on the value of the acquisition-mode property. Second, binning changes the reported maximum sensor resolution, therefore you must update the region-of-interest when changing the binning. Otherwise, you will read too much or crash by reading outside the window. You will be on the safe side, if you just set the acquisition mode and restart any libuca application. Third, changing modes takes about 15 seconds which might make the application appear to be frozen.

Transfering data with a 10GE connection

Due to the way the protocol works, make sure to set the 10Gb network interface via the network-interface property and set enable-10ge to true. Note that those values are ephemeral and will be gone once you create a new camera object. Furthermore, you must make sure that your application is able to open raw sockets. Either run it as root (not recommended) or set the cap_net_raw capability on the binary:

$ setcap cap_net_raw+ep <executable>

Testing with the mock software emulation

Go to the utils directory and start the UDP discovery and TCP communication servers by running the mock script. The phantom plugin should be able to communicate with this replacement.

Developer information

Here are some information in which this plugin differes from other camera plugins. The biggest difference is in how data transfers are handled. Unlike other cameras, this happens through a secondary channel for which we open a socket on which we listen to connection requests and incoming data. Because we still need to react on API calls this is handled in a separate thread that runs accept_img_data. This thread and the API communicate through two asynchronous message and return queues. The thread picks up a message and once done places a result object on the return queue. Messages and results carry type information, meta and real data.

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.