Opencv examples on Kinect

Similar documents
Supported platforms & compilers Required software Where to download the packages Geant4 toolkit installation (release 9.6)

Table of Contents. The RCS MINI HOWTO

Installation Guide for Basler pylon 2.3.x for Linux

INTEGRAL OFF-LINE SCIENTIFIC ANALYSIS

TNM093 Practical Data Visualization and Virtual Reality Laboratory Platform

Installing and Configuring MySQL as StoreGrid Backend Database on Linux

Code Estimation Tools Directions for a Services Engagement

USER GUIDE. Snow Inventory Client for Unix Version Release date Document date

1 Recommended Readings. 2 Resources Required. 3 Compiling and Running on Linux

umps software development

Computer Science and Engineering Linux Cisco VPN Client Installation and Setup Guide

Lazy OpenCV installation and use with Visual Studio

Introduction CMake Language Specific cases. CMake Tutorial. How to setup your C/C++ projects? Luis Díaz Más.

Embedded Linux development with Buildroot training 3-day session

Creating a Java application using Perfect Developer and the Java Develo...

How to use PDFlib products with PHP

Internet Payment Gateway

A survival guide to Radiance on Windows. When you have (almost) no choice :-(

Setting up an online Java Jmonitor. server using the. EXPERIMENTAL code from. John Melton GØORX/N6LYT

Steps for running C-program

NVIDIA CUDA GETTING STARTED GUIDE FOR MAC OS X

Cosmic Board for phycore AM335x System on Module and Carrier Board. Application Development User Manual

Setting Up the Site Licenses

How To Migrate To Redhat Enterprise Linux 4

Code::Block manual. for CS101x course. Department of Computer Science and Engineering Indian Institute of Technology - Bombay Mumbai

The installation of pylon for Linux is described in the INSTALL text document.

Proview on Raspberry PI

Installing Java. Table of contents

MySQL Connector/C++ Developer Guide

Building and Using a Cross Development Tool Chain

Signiant Agent installation

VPN: Virtual Private Network Setup Instructions

AlienVault Unified Security Management (USM) 4.x-5.x. Deploying HIDS Agents to Linux Hosts

CMPT 373 Software Development Methods. Building Software. Nick Sumner Some materials from Shlomi Fish & Kitware

SparkLab May 2015 An Introduction to

Ubuntu, FEAP, and Virtualiza3on. Jonathan Wong Lab Mee3ng 11/08/10

GTk+ and GTkGLExt Build Process for Windows 32- bit

RPC and TI-RPC Test Suite Test Plan Document

HammerDB Metrics. Introduction. Installation

Future Technology Devices International Ltd. Mac OS X Installation Guide

PowerPanel for Linux Software

dotdefender v5.12 for Apache Installation Guide Applicure Web Application Firewall Applicure Technologies Ltd. 1 of 11 support@applicure.

The programming language C. sws1 1

Sonatype CLM for Maven. Sonatype CLM for Maven

Getting Started with Kinetis SDK (KSDK)

NVIDIA CUDA GETTING STARTED GUIDE FOR MAC OS X

Apache 2.0 Installation Guide

IBM WebSphere Application Server V8.5 lab Basic Liberty profile administration using the job manager

CPSC 226 Lab Nine Fall 2015

Developing Platform Independent Software using the AutoTool Suite

StoreGrid Backup Server With MySQL As Backend Database:

OpenWBEM Getting Started Guide. Author: Dan Nuffer Last update: 12/09/04

Ensure that the AMD APP SDK Samples package has been installed before proceeding.

SVN Authentication and Authorization

Getting Started With! CGminer/BFGminer!

Symantec Protection for SharePoint Servers Getting Started Guide

Virtuozzo Virtualization SDK

Software Development for Embedded GNU Radio Applications

Installing VMware Tools on Clearswift v4 Gateways

The Advanced JTAG Bridge. Nathan Yawn 05/12/09

Performance Application Programming Interface

Intel Do-It-Yourself Challenge Lab 2: Intel Galileo s Linux side Nicolas Vailliet

Working with HPC and HTC Apps. Abhinav Thota Research Technologies Indiana University

HUMIM Software for Articulated Tracking

Introduction. Created by Richard Bell 10/29/2014

Content Management System

Build a GCC-based cross compiler for Linux

Step By Step Guide for Starting "Hello, World!" on OpenWRT

Cassandra Installation over Ubuntu 1. Installing VMware player:

Viking VPN Guide Linux/UNIX

Installing a Symantec Backup Exec Agent on a SnapScale Cluster X2 Node or SnapServer DX1 or DX2. Summary

SendMIME Pro Installation & Users Guide

Application Note: AN00141 xcore-xa - Application Development

CipherMail Gateway Upgrade Guide

Ensure that the AMD APP SDK Samples package has been installed before proceeding.

Author: Sumedt Jitpukdebodin. Organization: ACIS i-secure. ID: My Blog:

How To Install Storegrid Server On Linux On A Microsoft Ubuntu 7.5 (Amd64) Or Ubuntu (Amd86) (Amd77) (Orchestra) (For Ubuntu) (Permanent) (Powerpoint

Simulation of wireless ad-hoc sensor networks with QualNet

Addonics T E C H N O L O G I E S. NAS Adapter. Model: NASU Key Features

PMOD Installation on Linux Systems

Programming Environment Setup

QNX Software Development Platform 6.6. Installation Guide

Title: Documentation for the Pi-UPS-Monitor-App

The Embedded Linux Quick Start Guide In the Beginning... Embedded Linux Conference Europe 2010

Installing Microsoft SQL Server Linux ODBC Driver For Use With Kognitio Analytical Platform

Massey University Follow Me Printer Setup for Linux systems

RecoveryVault Express Client User Manual

An Embedded Wireless Mini-Server with Database Support

Installing FEAR on Windows, Linux, and Mac Systems

An Introduction to the Linux Command Shell For Beginners

Xeon Phi Application Development on Windows OS

Table of Contents. Java CGI HOWTO

Local Caching Servers (LCS): User Manual

McAfee epolicy Orchestrator Software

SheevaPlug Development Kit README Rev. 1.2

Installing Eclipse C++ for Windows

Transcription:

Opencv examples on Kinect We are using Opencv to work on Kinect's RGB output. Cvdemo.c, an opencv example to run with kinect, available easily. We faced some issues in compiling it with gcc, so we used cmake and make instead. Cmake and make commands are used to compile and execute source code on Linux. Cmake is an open source software that configures your build parameters before compilation. In simple words, it just checks your system. It will generate the Makefile used later by make to buikd the example. Open Terminal and access the build directory present in your source code. Write down cmake... madiha-salafi@black-beauty:~/openkinect/build$ cmake.. -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Operating system is Linux -- Got System Processor i686 -- libfreenect will be installed to /usr/local -- Headers will be installed to /usr/local/include/libfreenect

-- Libraries will be installed to /usr/local/lib -- Found libusb-1.0: -- - Includes: /usr/include -- - Libraries: /usr/lib/libusb-1.0.so -- Check if the system is big endian -- Searching 16 bit integer -- Looking for sys/types.h -- Looking for sys/types.h - found -- Looking for stdint.h -- Looking for stdint.h - found -- Looking for stddef.h -- Looking for stddef.h - found -- Check size of unsigned short -- Check size of unsigned short - done -- Using unsigned short -- Check if the system is big endian - little endian -- Looking for include files CMAKE_HAVE_PTHREAD_H -- Looking for include files CMAKE_HAVE_PTHREAD_H - found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Looking for XOpenDisplay in /usr/lib/libx11.so;/usr/lib/libxext.so -- Looking for XOpenDisplay in /usr/lib/libx11.so;/usr/lib/libxext.so - found -- Looking for gethostbyname

-- Looking for gethostbyname - found -- Looking for connect -- Looking for connect - found -- Looking for remove -- Looking for remove - found -- Looking for shmat -- Looking for shmat - found -- Looking for IceConnectionNumber in ICE -- Looking for IceConnectionNumber in ICE - found -- Found X11: /usr/lib/libx11.so -- Configuring done -- Generating done -- Build files have been written to: /home/madiha-salafi/openkinect/build Now the *.c examples for kinect are configured successfully. Write 'make' to start building the binaries: madiha-salafi@black-beauty:~/openkinect/build$ make Scanning dependencies of target freenect [ 5%] Building C object src/cmakefiles/freenect.dir/core.c.o [ 11%] Building C object src/cmakefiles/freenect.dir/tilt.c.o [ 16%] Building C object src/cmakefiles/freenect.dir/cameras.c.o [ 22%] Building C object src/cmakefiles/freenect.dir/usb_libusb10.c.o Linking C shared library../lib/libfreenect.so [ 22%] Built target freenect

Scanning dependencies of target freenectstatic [ 27%] Building C object src/cmakefiles/freenectstatic.dir/core.c.o [ 33%] Building C object src/cmakefiles/freenectstatic.dir/tilt.c.o [ 38%] Building C object src/cmakefiles/freenectstatic.dir/cameras.c.o [ 44%] Building C object src/cmakefiles/freenectstatic.dir/usb_libusb10.c.o Linking C static library../lib/libfreenect.a [ 44%] Built target freenectstatic Scanning dependencies of target freenect_sync [ 50%] Building C object wrappers/c_sync/cmakefiles/freenect_sync.dir/libfreenect_sync.c.o Linking C shared library../../lib/libfreenect_sync.so [ 50%] Built target freenect_sync Scanning dependencies of target glpclview [ 55%] Building C object examples/cmakefiles/glpclview.dir/glpclview.c.o Linking C executable../bin/glpclview [ 55%] Built target glpclview Scanning dependencies of target glview [ 61%] Building C object examples/cmakefiles/glview.dir/glview.c.o /home/madiha-salafi/openkinect/examples/glview.c: In function main : /home/madiha-salafi/openkinect/examples/glview.c:360: warning: control reaches end of non-void function Linking C executable../bin/glview [ 61%] Built target glview Scanning dependencies of target tiltdemo [ 66%] Building C object examples/cmakefiles/tiltdemo.dir/tiltdemo.c.o Linking C executable../bin/tiltdemo [ 66%] Built target tiltdemo Scanning dependencies of target fakenect

[ 72%] Building C object fakenect/cmakefiles/fakenect.dir/fakenect.c.o Linking C shared library../lib/fakenect/libfreenect.so [ 72%] Built target fakenect Scanning dependencies of target record [ 77%] Building C object fakenect/cmakefiles/record.dir/record.c.o Linking C executable../utils/record [ 77%] Built target record Scanning dependencies of target freenect_sync_static [ 83%] Building C object wrappers/c_sync/cmakefiles/freenect_sync_static.dir/libfreenect_sync.c.o Linking C static library../../lib/libfreenect_sync.a [ 83%] Built target freenect_sync_static Scanning dependencies of target cppview [ 88%] Building CXX object wrappers/cpp/cmakefiles/cppview.dir/cppview.cpp.o Linking CXX executable../../bin/cppview [ 88%] Built target cppview Scanning dependencies of target freenect_cv [ 94%] Building C object wrappers/opencv/cmakefiles/freenect_cv.dir/libfreenect_cv.c.o Linking C shared library../../lib/libfreenect_cv.so [ 94%] Built target freenect_cv Scanning dependencies of target cvdemo [100%] Building C object wrappers/opencv/cmakefiles/cvdemo.dir/cvdemo.c.o Linking C executable../../bin/cvdemo [100%] Built target cvdemo Now to start away with installation, use 'make install'. You have to be root to carry out this operation, so use sudo with it.

madiha-salafi@black-beauty:~/openkinect/build$ sudo make install [sudo] password for madiha-salafi: [ 22%] Built target freenect [ 44%] Built target freenectstatic [ 50%] Built target freenect_sync [ 55%] Built target glpclview [ 61%] Built target glview [ 66%] Built target tiltdemo [ 72%] Built target fakenect [ 77%] Built target record [ 83%] Built target freenect_sync_static [ 88%] Built target cppview [ 94%] Built target freenect_cv [100%] Built target cvdemo Install the project... -- Install configuration: "" -- Installing: /usr/local/lib/libfreenect.so.0.0.1 -- Up-to-date: /usr/local/lib/libfreenect.so.0.0 -- Up-to-date: /usr/local/lib/libfreenect.so -- Installing: /usr/local/lib/libfreenect.a -- Up-to-date: /usr/local/include/libfreenect/libfreenect.h -- Installing: /usr/local/lib/pkgconfig/libfreenect.pc -- Installing: /usr/local/bin/glview -- Removed runtime path from "/usr/local/bin/glview" -- Installing: /usr/local/bin/glpclview

-- Removed runtime path from "/usr/local/bin/glpclview" -- Installing: /usr/local/bin/tiltdemo -- Removed runtime path from "/usr/local/bin/tiltdemo" -- Installing: /usr/local/lib/fakenect/libfreenect.so.0.0.1 -- Up-to-date: /usr/local/lib/fakenect/libfreenect.so.0.0 -- Up-to-date: /usr/local/lib/fakenect/libfreenect.so -- Installing: /usr/local/lib/libfreenect_sync.so.0.0.1 -- Up-to-date: /usr/local/lib/libfreenect_sync.so.0.0 -- Up-to-date: /usr/local/lib/libfreenect_sync.so -- Removed runtime path from "/usr/local/lib/libfreenect_sync.so.0.0.1" -- Installing: /usr/local/lib/libfreenect_sync.a -- Up-to-date: /usr/local/include/libfreenect/libfreenect_sync.h -- Up-to-date: /usr/local/include/libfreenect.hpp -- Installing: /usr/local/bin/cppview -- Removed runtime path from "/usr/local/bin/cppview" -- Installing: /usr/local/lib/libfreenect_cv.so.0.0.1 -- Installing: /usr/local/lib/libfreenect_cv.so.0.0 -- Installing: /usr/local/lib/libfreenect_cv.so -- Removed runtime path from "/usr/local/lib/libfreenect_cv.so.0.0.1" -- Installing: /usr/local/include/libfreenect/libfreenect_cv.h -- Installing: /usr/local/bin/cvdemo -- Removed runtime path from "/usr/local/bin/cvdemo" After getting through these steps smoothly.. we are ready to run cvdemo.. madiha-salafi@black-beauty:~/openkinect/build$ cd bin

madiha-salafi@black-beauty:~/openkinect/build/bin$ madiha-salafi@black-beauty:~/openkinect/build/bin$./cvdemo Error: Invalid index [0] Error: Kinect not connected? Don't forget to plug in Kinect..! madiha-salafi@black-beauty:~/openkinect/build/bin$./cvdemo cvdemo shows both RGB and Depth videos. To clean up later madiha-salafi@black-beauty:~/openkinect/build$ make clean