Intel & #174; Experience™Deep camera code example-R200 camera data stream, Intel r200

Source: Internet
Author: User

Intel®Real-sense depth camera code example-R200 camera data stream, Intel r200

Original article address of Intel Developer Zone

Introduction

This downloadable code example shows how to use intel for Windows®Experience™SDK * captures and views the original R200 camera data stream written in C #/XAML. Visual Studio * solution actually contains four simple projects (less than 200 lines of code ):

  • ColorStream-Display the color data stream of the RGB camera
  • DepthStream-Display deep data streams
  • IRStreams-Display left and right IR camera data streams
  • AllStreams-Display all the preceding data streams in a Single Window (figure 1)


Figure1.Sample Code for all data streams

 

Software Development Environment

This code example uses Microsoft Visual Studio Community 2015 in Windows®10. The project template used for this example isVisual C #-Windows-Classic Desktop.

The SDK and DCM versions used for this project are:

  • Intel®Experience™SDK v6.0.21.6598
  • Intel®Experience™Depth of field camera manager R200 v2.0.3.39488
Hardware Overview

To complete this development, we use intel®Experience™The developer kit (R200), which contains cameras, USB3 cables, and a magnetic adsorption bracket used to connect cameras and laptops.


Figure 2. Intel®Experience™Developer kit (R200)

The following hardware requirements must be met when running the R200 sample code:

  • Fourth-generation intel®Core™Processor or later
  • 150 MB available hard disk space
  • 4 GB RAM
  • Intel®Experience™Camera (R200)
  • Available USB3 ports for R200 cameras (or integrated cameras)

Important:The USB3 interface is required to support the bandwidth required by the camera. This interface must be connected to the dedicated USB3 port of the Client System (no hub is used ).

 

Code

The Visual Studio solution contains four WPF projects developed in C. These projects use the explicit path to libpxcclr. cs. dll (managed DLL:

C:\Program Files (x86)\Intel\RSSDK\bin\x64

Note that if you are using different SDK installation paths, you need to modify the reference.

Because we reference the 64-bit DLL, you must make sure thatProjectPropertiesPlatform targetSet "x64 ".

To build and run a specific project, right-click the project name in Solution Explorer (for exampleAllStreams), And then selectSet as StartUp Project.

CameraStreamsAll projects included in the solution adopt a similar structure:

  • Configure the session and SenseManager interfaces.
  • Startup nameUpdateWorker thread,AcquireFrame-ReleaseFrameThis thread processes them cyclically.
  • AcquireFrame-ReleaseFrameThe following activities are performed in the cycle:
    • Obtain image data.
    • Call the rendering method to update the UI.
    • Release resources.
    • Release a frame.
  • RenderingActivities in the method include:
    • Call the ConvertBitmap method to convert bitmap frames to the BitmapImage type. This type of conversion is required when displaying frames in the WPF Image control.
    • Update the UI by entrusting the work to the dispatch program related to the UI thread.
  • ShutDownMethod is being stimulatedWindow_ClosingOrBtnExit_ClickEvent.ShutDownActivities in the method include:
    • Stop the Update thread.
    • Processing object.
View now

Click the download link to learn the code and experiment related to this example.

About intel®Experience™Technology

For more information about the intel realsense software development kit for Windows, visit: https://software.intel.com/zh-cn/intel-realsense-sdk.

 

Original article address of Intel Developer Zone

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.