GithubHelp home page GithubHelp logo

bibigone / astradotnetdemo Goto Github PK

View Code? Open in Web Editor NEW
31.0 6.0 6.0 34.75 MB

Simple .Net solution to demonstrate working with Orbbec Astra (Pro) depth sensors from C#

C# 100.00%
depth astra-sdk csharp

astradotnetdemo's Introduction

AstraDotNet Demo

This is a simple .Net solution to demonstrate working with Orbbec Astra (Pro) depth sensors from C#.

Features:

  • Visualization of depth and color streams
  • Visualization of body tracking (as stick skeletons over depth map)
  • Calculation of actual frame rate (FPS, frames per second)
  • Support for multiple sensors connected to one PC
  • Registration mode switcher for depth stream (registration allows to align depth map with color image)
  • Any CPU (support for both 32-bit and 64-bit architectures)

How to use:

  • Open AstraDotNetDemo.sln in Visual Studio 2017
  • Build and run AstraTestWpf application (F5)
  • All required binaries and libraries are already in repository (see externals folder) and are copied automatically to output directory during build

Known issues in Astra SDK:

  1. For Astra PRO actual frame rate is not exactly 30 FPS. It is about 29.7 FPS for depth only mode, and about 28.5 FPS for depth+color mode.
  2. When more than one sensor is connected to one and the same PC, the following limitations take place:
  • For Astra PRO sensors: lowering of frame rate to 15 FPS if color stream is on
  • For Astra PRO sensors: you can see live color stream only from one sensor (black screen for other sensors)
  • Body (skeletal) tracking doesn't work if it is turned on for more than one sensor
  1. Wrong information about field-of-view for color stream.
  2. Donot unplug sensor while application is running. In other case application may crash on exit.

Stuff used to make this:

License:

Astra SDK is licensed under Apache v2.0 and includes components of OpenNI and OpenCV projects.

This sample code is licensed under MIT license.

astradotnetdemo's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

astradotnetdemo's Issues

PixelFormat

Hi,

Thanks for your work!
I have try this demo, and find a issue,
the Astra.PixelFormat is RGB888, and in BufferOfT.cs the WriteableBitmap's PixelFormats is Bgr24.
Is it correct? Not Rgb24?

Not able to compile with Visual Studio 2013

I have downloaded the repository, unpacked and opened the .sln file with Visual Studio 2013 Community.

But I'm unable to compile the same. I'm truly new to C# and unable to find the problem.

What could be the reason for the same?

How may I be able to compile? What could go wrong?

Thanks..

BodyTracking not working

Hi,

I have tried the current example with Astra Pro, but somehow the BodyTracking does not work.

streamReader.TryOpenFrame(10, out var frame)
in SensorViewModels.cs line 309 is never true.

May you check if it works for you?

Thanks in advance.

New SDK

Hi there, astra has released a new SDK thats valid till end of June :)

Hi!

Hi,

Thanks for your work, I search for a sample in c# and it's perfect!
I create my own soft to manage two cameras. But I can't do body tracking on two cameras simultaneously. BodyFrame juste drop ! Does it works for you?
I tried with your sample and it doesn't work. Also I just see one coulour source when I display the two sensors.

Thanks in advance!
Julien

Can I use OpenCV inside this wrapper?

Hi, It's good to have a working C# wrapper.

I would like to know if there is a way to use OpenCV inside this wrapper.

I need OpenCV for some image processing stuff.

Waiting for a valuable feedback.

Thanks..

Application Halted

Hello,

I'm getting "Application halted" after i am trying to start the application in VS2017. What ould be the issue?

Edit:
Got it working. The Astra DLLs were not copied correctly to the output folder. After i Copied them manually, everything works.

Is it possible to get an example how to get the pointcloud xyz coordinates?

Hi,

Thank you for the nice C# project.

Is it possible to get an example how to get the pointcloud xyz coordinates?
I do not need a viewer, but would like to understand how to get values of xyz coordinates.

Also I would like to run this project in console application (without visualization), how can I start doing this (I find a little bit hard to understand how your project is connected with windows forms as I would like to avoid them)?

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.