Getting Images from TouchlessLib. Download, unzip.

Slides:



Advertisements
Similar presentations
An introduction to Destiny, the online card catalog
Advertisements

Integers Adding and Subtracting
3) CircuitWorks Component Library
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Chapter 18 - Data sources and datasets 1 Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
Pictures and Sounds in Alice Worlds. Billboards Alice provides a means of adding pictures to worlds. Pictures can be captured using a digital camera,
Copyright © 2012 Pearson Education, Inc. Chapter 2 Introduction to Visual C#
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Writing Methods. Create the method Methods, like functions, do something They contain the code that performs the job Methods have two parts.
CIS 310: Visual Programming, Spring 2007 Western State College Welcome to 310 Visual Programming Spring, 2008.
Graphics Images – PictureBox control Drawing graphics - Graphics object Multimedia controls PictureBox control Image property – select image Choose how.
Graphics and Multimedia In visual Studio. Net (C#)
1 Windows Printing. 2 Objectives You will be able to Output text and graphics to a printer. Print multipage documents. Use the standard Windows print.
Getting started with Microsoft.NET Gadgeteer Comberton Village College Gadgeteer Club.
1 Graphical User Interfaces Part 2 Outline Multiple Document Interface (MDI) Windows Visual Inheritance User-Defined Controls.
Dreamweaver – Setting up a Site and Page Layouts Web Design Section 7-2 Part or all of this lesson was adapted from the University of Washington’s “Web.
Adding applications to your website..  Review inserting clip art and animations into a content editor web part  Change little “3 amigos” icon in top.
1 Windows Graphics. 2 Objectives You will be able to Use the Windows GDI+ to draw arbitrary figures and text on a Windows form. Add a handler for the.
Creating With Code.
1 Working with Menus and Dialog Boxes. 2 Objectives You will be able to Create and edit menus for Windows Forms applications. Write code to handle menu.
Lecture 2 COM - Example. Integrate the web Webcam functionality using.Net and COM First let's explain what we should do exactly. First let's explain what.
COS240 O-O Languages AUBG, COS dept Lecture 33 Title: C# vs. Java (GUI Programming) Reference: COS240 Syllabus.
Ecomdash Ecomdash Academy Lesson Plan Creating a eBay auction listing 1:08 / 4:27.
BIL528 – Bilgisayar Programlama II Introduction 1.
1 Chapter Eleven Handling Events. 2 Objectives Learn about delegates How to create composed delegates How to handle events How to use the built-in EventHandler.
CS590VC – Tutorial 6 Client-side connection through external application.
Write-N-Cite 4 Creighton University Libraries Spring 2015.
More exercises with C# Fateme Rajabi #W6. Add an image to your project Right click on your project name in solution explorer Add -> Existing item -> browse.
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
1 Chapter 20 – Data sources and datasets Outline How to create a data source How to use a data source How to use Query Builder to build a simple query.
By ALFREDO C. MEDRANO Planning Officer III. What is a website? A website is a collection of web pages (documents that are accessed through the Internet).
private void mailButton_Click(object sender, RoutedEventArgs e) { sendMail("From JotPad", jotTextBox.Text); }
By ALFREDO C. MEDRANO Planning Officer III. What is a website? A website is a collection of web pages (documents that are accessed through the Internet).
Finding the right virtual space. Vendors available
nfo/repcat/arcinfo/index.html Files here are in e00 format.
BALANCING EQUATIONS NO2 - Balancing equations made easy.
REC [ ] How to implement CAMERA RECORDING for USB WEBCAM or IP CAMERA in C#.NET SOURCE CODE: ! Welcome to this presentation that explains.
Dreamweaver – Setting up a Site and Page Layouts Web Design Section 7-2 Part or all of this lesson was adapted from the University of Washington’s “Web.
Tutorial for Modelsim 1 Installation Download the Modelsim Student Edition: Follow the.
Text2PTO: Modernizing Patent Application Filing A Proposal for Submitting Text Applications to the USPTO.
 Many people like the flexibility of digital images. For example:  They can be shared by attaching to /uploading to Internet  Sent via mobiles.
OpenCV C++ Image Processing
Add Video Library in Company
Introduction to Vivado
Introduction to Python
Add and Subtract Negative Numbers
Computing with C# and the .NET Framework
Chapter Eleven Handling Events.
Adding integers.
Reference: COS240 Syllabus
How to Add Images Using an 'openFile' Dialog
Type the name of your first concept here
Finding Magazine and Journal Articles in
1. Open Visual Studio 2008.
Lecture 7: Linked List Basics reading: 16.2
Selecting electives for next year
Lecture 7: Introduction to Processing
User Controls CSC 230 (Blum).
Suppose I want to add all the even integers from 1 to 100 (inclusive)
State Name Interact with
Completing the Square MM3G2.
Image #1 Getting Started
MTA-4201 Game Programming Chapter 8 : Scrolling Background & Font
Development Directory 1 Page Guide
CIS 338: Images on Forms Dr. Ralph D. Westfall May, 2009.
Reading from File & Picture Boxes
Absolute Value Equations
Quick Start Guide: Adding Industrial Equipment
3rd Party Widgets & Custom Code
Adding integers without number line 2 digit.
Presentation transcript:

Getting Images from TouchlessLib

Download, unzip.

There is a PictureBox component here that was added from the Toolbox (left side of the screen).

Add a “Reference” to TouchlessLib

Also, add the WebCamLib library

Make sure that it copies the WebCamLib.dll to your Output Directory

TouchlessMgr touchlessManager; public Form1() { InitializeComponent(); this.touchlessManager = new TouchlessMgr(); this.Text = "Cameras: " + this.touchlessManager.Cameras.Count; this.touchlessManager.CurrentCamera = this.touchlessManager.Cameras[0]; this.touchlessManager.CurrentCamera.OnImageCaptured += new EventHandler (CurrentCamera_OnImageCaptured); } void CurrentCamera_OnImageCaptured(object sender, CameraEventArgs e) { this.pictureBox1.Image = e.Image; } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { this.touchlessManager.CurrentCamera.OnImageCaptured -= new EventHandler (CurrentCamera_OnImageCaptured); } 0. Here’s the code. Let’s walk through it.

TouchlessMgr touchlessManager; public Form1() { InitializeComponent(); this.touchlessManager = new TouchlessMgr(); this.Text = "Cameras: " + this.touchlessManager.Cameras.Count; this.touchlessManager.CurrentCamera = this.touchlessManager.Cameras[0]; this.touchlessManager.CurrentCamera.OnImageCaptured += new EventHandler (CurrentCamera_OnImageCaptured); } void CurrentCamera_OnImageCaptured(object sender, CameraEventArgs e) { this.pictureBox1.Image = e.Image; } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { this.touchlessManager.CurrentCamera.OnImageCaptured -= new EventHandler (CurrentCamera_OnImageCaptured); } 1. Set up TouchlessManager and Cameras

TouchlessMgr touchlessManager; public Form1() { InitializeComponent(); this.touchlessManager = new TouchlessMgr(); this.Text = "Cameras: " + this.touchlessManager.Cameras.Count; this.touchlessManager.CurrentCamera = this.touchlessManager.Cameras[0]; this.touchlessManager.CurrentCamera.OnImageCaptured += new EventHandler (CurrentCamera_OnImageCaptured); } void CurrentCamera_OnImageCaptured(object sender, CameraEventArgs e) { this.pictureBox1.Image = e.Image; } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { this.touchlessManager.CurrentCamera.OnImageCaptured -= new EventHandler (CurrentCamera_OnImageCaptured); } 2. C# syntax to set up an EventHandler

TouchlessMgr touchlessManager; public Form1() { InitializeComponent(); this.touchlessManager = new TouchlessMgr(); this.Text = "Cameras: " + this.touchlessManager.Cameras.Count; this.touchlessManager.CurrentCamera = this.touchlessManager.Cameras[0]; this.touchlessManager.CurrentCamera.OnImageCaptured += new EventHandler (CurrentCamera_OnImageCaptured); } void CurrentCamera_OnImageCaptured(object sender, CameraEventArgs e) { this.pictureBox1.Image = e.Image; } private void Form1_FormClosing(object sender, FormClosingEventArgs e) { this.touchlessManager.CurrentCamera.OnImageCaptured -= new EventHandler (CurrentCamera_OnImageCaptured); } 3. C# syntax to remove an EventHandler

Good to go.