Optical Flow walk through Aidean Sharghi Spring 14.

Slides:



Advertisements
Similar presentations
Step 1 Login to NFA Course List. Step 2 Login Screen.
Advertisements

Internal staff release only X-Call V2.0 - Installation for Emis LV & PCS Jayex Technology Limited X-Call Version 2.0 March 2010 v
Enter the address as shown below in the address bar.
Presentation Heading – font Arial
How to download and install Sharpdesk
 Statistics package  Graphics package  Programming language  Can be used to share/reproduce analyses  Many new packages being created - can be downloaded.
Introduction to OpenCV Dr. Chung-Hao Chen Haole Guo Sep 2011.
OpenCV Training course
Gavin S Page OpenCV Tutorial Part I Using OpenCV with Microsoft Visual Studio.net November 2005.
Activity One Use the Windows Explorer program to create a new folder. Name the folder by your first name. Click on the windows explorer icon then highlight.
Java Programming Working with TextPad. Using TextPad to Work with Java This text editor is designed for working with Java You can download a trial version.
Microprocessor Simulation
Scite Scintilla integrated text editor. Click here.
Command Console Tutorial BCIS 3680 Enterprise Programming.
2002 C Program Outline How to use turbo c++ 3.0?.
Presented by: Andrew Bedard English 393. Introduction FTP or file transfer protocol is a way to get files from across a network from one computer to another.
Image Processing on the Pi using openFrameworks. Setup Before beginning: – Install openFrameworks per these instructionsinstructions Run dependency scripts.
How to Use The Borland C++ Compiler Version 5
How to install windows 7&8 from usb flash drive.  Presented by Rishikesh kumar.
INDEX ∞ Image Processing ∞ OpenCV ∞ Download & Setup ∞ Make Project ∞ Show Result ∞ Q & A Setup OpenCV & Tutorial.
Getting Started with Adobe Photoshop CS6
OpenCV Open source C omputer V ision library By: Bahare Torkaman Fall 2010.
OPENCV TUTORIAL OpenCV Windows 7 Microsoft Visual C++ Express 2010.
Streaming Twitter. Install pycurl library Use a lab computer From the course website Download the links from pycurl and twitter streamer Extract site-packages.zip,
How to download Odin software The Odin trading Software is available to commodity clients. To download Odin software you need to visit
When you start Photo Story the title screen gives you three options. The following slides will illustrate the directions when “Begin a new story” has been.
Introduction to Programming Workshop 1 PHYS1101 Discovery Skills in Physics Dr. Nigel Dipper Room 125d
Batch File Basics Automate repetitive computer processes Friday, March 12, 2014 Presented by Thomas Redd, STS, Granite School District.
1 Automatic Processing Pipelines with XNAT and REDCap Vanderbilt University Benjamin Yvernault, Bennett Landman, Brian Boyd,
How to Tag a Corpus Using Stanford Tagger. Accuracy All tokens: 97.32% Unknown words: 90.79%
Workflow based Slicer IGT Module : Tutorial Andinet Enquobahrie, PhD Kitware Inc December, 2008.
Java and C# [this is a bonus – it is not a required lesson] ACO101: Introduction to Computer Science.
Active-HDL Interfaces Debugging C Code Course 10.
Hidden Markov Toolkit (HTK) Installation Fang-Hui Chu Department of Computer Science & Information Engineering National Taiwan Normal University.
CSE 232: C++ debugging in Visual Studio and emacs C++ Debugging (in Visual Studio and emacs) We’ve looked at programs from a text-based mode –Shell commands.
Introduction to Web Services. Examples Using a Web Service Creating a new Web Service.
HOW TO INSTALL & USE OPENCV. I - CHOOSE YOUR FAVORITE IDE Microsoft Visual Studio Express 2013 for Window Desktop (Free) can be downloaded from
1 Getting Started with C++. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Visual Studio 2008.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
How to Download and Install the Naper eReader and eBook Naper Publishing Group.
Java Programming, Second Edition Appendix A Working with Java SDK 1.4.
C++ / G4MICE Course Session 2 Basic C++ types. Control and Looping Functions in C Function/method signatures and scope.
Installing SPHINX by: COLLEGE OF ART & SCIENCE UNIVERSITI UTARA MALAYSIA STIW5023 ADVANCED PROGRAMMING.
Debugging Ensemble Productions CAMTA Meeting 11 th November 2010 John Murray.
Delivering Business Value through IT Face feature detection using Java and OpenCV 1.
1 Installing Java on Your PC. Installing Java To develop Java programs on your PC: Install JDK (Java Development Kit) Add the directory where JDK was.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Open project in Microsoft Visual Studio → build program in “Release” mode.
Java On the ENB 116 Computers The JDK is now available on the ENB 116 computers. You can use a classroom computer rather than your own laptop or CIRCE.
Processing TYWu. Where can I download? 2.0b9 Windows 32-bit.
Introduction to Programming
1. Starting 1 Let’s Learn Saenthong School, January – February 2016 Teacher: Aj. Andrew Davison, CoE, PSU Hat Yai Campus
1 /17 Installing and Configuring TaxWise © 2006, Universal Tax Systems, Inc. All Rights Reserved. Installing and Configuring TaxWise Objectives –In this.
How to install JavaCV in Eclipse. Make sure to download and install all these before you proceed Eclipse for Java EE developers (current is Juno)
Steven Geisel Gabe Owens.  Angry IP Scanner is an open-source and cross-platform network scanner  Features include IP Address scanning, port scanning,
OpenCV C++ Image Processing
How To Silent-Install The AVG Antivirus 2017 Using The DOS Command.
Python Lesson 12 Mr. Kalmes.
How to change the LOGO on PecStarWeb V3.6
OpenCV Tutorial Part I Using OpenCV with Microsoft Visual Studio .net November 2005 Gavin S Page
Perl A simple test.
Python Lesson 12 Mr. Kalmes.
What I learned in the first 2 weeks
BSc in Digital Media, PSUIC
Run Java file with Window cmd
Introduction to javadoc
C++ Programming Basics
Hidden Markov Toolkit (HTK) Installation
Presentation transcript:

Optical Flow walk through Aidean Sharghi Spring 14

Optical Flow The objective in this assignment is to setup and use Optical Flow This implementation is fast and so you will see it can be used for real-time purposes Required steps to setup and run are provided in this presentation

Contents OpenCV installation process Setting Environment Variables How to run Optical Flow

OpenCV OpenCV stands for Open-source Computer Vision It is a library of useful functions used in Computer Vision To run Optical Flow: – Install OpenCV 2.2 if you have VS 2010 installed on your machine – Install OpenCV 2.4 if you have VS 2012

Install OpenCV2.2 for VS 2010 Download OpenCV2.2 from Extract the files in C:\OpenCV2.2 Set Environment Variables. – If variable ‘path’ exists, just add the C:\OpenCV2.2\bin\ to the end of its value – If ‘path’ does not exist, just add a new variable and name it ‘path’ and set its value to what mentioned above

Install OpenCV2.4 for VS 2012 Download OpenCV2.4 from Extract the files in C:\opencv Set Environment Variables. – Add the new variable ‘path’ and set its value to “C:\opencv\build\(your VS build x86/x64)\vc11\bin\ “ – E.g. if you have VS x64 version installed on your machine, the value will be: C:\opencv\build\x64\vc11\bin

Set the Environment Variable in Windows 7/8/8.1

Building the Project Just download and build the project using your VS Open a command prompt and change its directory to your project’s debug folder Give the input

Command Prompt Open Command Prompt – To do so, you can hold Ctrl key and press R. Run window will show up. Then write cmd in the box and press enter. Change Directory to the Debug Folder – cd is the command you need to use. For example if you enter: – cd C:\Users\’your username’\Desktop This will take you to your desktop

Two ways to use When you are in the Debug folder, then you have two options Compute Optical Flow frames imageFile1 imageFile2 change directory to the debug folder then enter these: > OpticalFlow.exe frames image0.jpg image1.jpg Find the Optical Flow by webcam camera or NULL > OpticalFlow.exe camera

Four keys to control w : increment (by 10) number of corners to track (max = 400) s : decrement (by 10) number of corners to track (min=10) d : double pyramid window size (max=64) a : half pyramid window size (min=2)

Code Analysis Load Image 1 Interest Points KLT Tracker using 2 images

Harris Corner Detector

KLT Tracker Detect Harris corners in the first frame Build the Optical Flow Pyramid For each Harris corner compute motion between consecutive frames Link motion vectors in successive frames to get a track for each Harris point Introduce new Harris points by applying Harris detector at every m frames

void cvCalcOpticalFlowPyrLK(const CvArr* prev, const CvArr* curr, CvArr* prevPyr, CvArr* currPyr, const CvPoint2D32f* prevFeatures, CvPoint2D32f* currFeatures, int count, CvSize winSize, int level, char* status, float* track_error, CvTermCriteria criteria, int flags) Two useful functions

int buildOpticalFlowPyramid(InputArray img, OutputArrayOfArrays pyramid, Size winSize, int maxLevel, bool withDerivatives=true, int pyrBorder=BORDER_REFLECT_101, intderivBorder=BORDER_CONSTANT, bool tryReuseInputImage=true)