Quantcast
Channel: C#
Viewing all articles
Browse latest Browse all 1853

How to develop a WPF APP that use Realsense SDK

$
0
0

All my works with Realsense SDK (and previously with Perceptual) was realized in Windows Form essentially because I started to study the SDK from the sample supplied with the SDK and I don't think to change it.
When I start to develop my application for the APP Challenge I think to create an application that can change its resolution and adapt its User Interface accordingly to the specific resolution and type of device where will be used.
To do this I think to create a WPF application, but when I try to do it I find some problems.
Looking online and in the forum I don't find nothing specific about my problem, for that reason now that I've created successfully my app I try to explain my experience in order to help other.
First of all you need to create an empty WPF app in Visual Studio.
Add a reference to libpxcclr.cs.dll.

 
This DLL have a dependency to another native DLL written in C++, that can't be added directly as reference and we need to use a trick:
Select from solution explorer, right clicking on the project name and select Add Existing Item

Browse to the Realsense SDK installation folder in Bin\x64 or Bin\win32 depending on the platform you are compiling for.
Choose the file libpxccpp2c.dll

 
Select it in the project from solution explorer and in Properties windows set the property "Copy to Output Directory" to "Copy Always" in order to include the DLL with the binary at compile time.
Right click on Project name in Solution explorer and select Properties to access the project properties page.


Select the Build subpage and choose the Platform Target according to the one you are using (x64 or x86).

From this point you can write your application accessing the SDK API for your need.

  • WPF
  • Intel RealSense
  • Sviluppatori
  • Professori
  • Studenti
  • Microsoft Windows* 8
  • Tecnologia Intel® RealSense™
  • C#
  • Intermedio
  • Tecnologia Intel® RealSense™
  • Strumenti di sviluppo
  • Desktop Microsoft Windows* 8
  • Esperienza utente e progettazione
  • Embedded
  • Videocamera anteriore F200
  • Desktop
  • URL
  • Argomenti sui compilatori
  • Area tema: 

    IDZone
  • Tecnologia Intel® RealSense™

  • Viewing all articles
    Browse latest Browse all 1853

    Trending Articles