Code Monkey home page Code Monkey logo

pylon-and-structure-camera-wrappers's Introduction

Pylon Camera and Structure Camera Wrappers

This is a wrapper around Structure IO camera and Basler cameras. All frame acquisition happens in a new thread spawned so that all frames are acquired real-time. Just after the initialization frame grabbing starts. So to find the working of the camera, for any USB or miscellaneous errors the code would give an error at initialization phase itself. The reason to make this repo is that the frame acquisition wasn't happening in a different thread or it wasn't easy to integrate into complex C++ codes. Here I have tried to create to create something Intel realSense does efficiently. Hence.
The API is as follows:

Includes

#include <get_depth_frame_Structure.h>
#include <pylon_camera_utils.h>

Getting depth frame and doing ICP (Structure Camera API)

structure_io_depthframe dpt_frame;
depth_frame_latest = dpt_frame.get_depth_frame();
# Save reference Frame
dpt_frame.save_reference_frame()
// Do ICP from the reference frame as reference
dpt_frame.icp_detect_movement()

Basler camera API

pylon_camera_utils cmos_camera;
while (true) {
    if (!cmos_camera.nm685_current_frame.empty() && !cmos_camera.nm830_current_frame.empty()) {
        // Do some Image processing stuff with the camera frame
        cmos_camera.get_center_of_blob(cmos_camera.nm830_current_frame);
        break;
    }
}

pylon-and-structure-camera-wrappers's People

Contributors

krishnachaitanya7 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.