0% found this document useful (0 votes)
113 views13 pages

Opencv: Stacy O'Malley Cs-590 Summer, 2007

OpenCV is an open source library for computer vision tasks. It contains functions for image processing, object detection and recognition, facial recognition, motion analysis, and more. OpenCV can be used on Linux, Windows and Mac platforms. It allows loading and converting color images, converting images to binary, finding image contours, and performing simple color segmentation. Documentation and tutorials are available on the OpenCV wiki and website.

Uploaded by

tenshi.unam
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
113 views13 pages

Opencv: Stacy O'Malley Cs-590 Summer, 2007

OpenCV is an open source library for computer vision tasks. It contains functions for image processing, object detection and recognition, facial recognition, motion analysis, and more. OpenCV can be used on Linux, Windows and Mac platforms. It allows loading and converting color images, converting images to binary, finding image contours, and performing simple color segmentation. Documentation and tutorials are available on the OpenCV wiki and website.

Uploaded by

tenshi.unam
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 13

OpenCV

Stacy OMalley CS-590 Summer, 2007

What is OpenCV?

Open source library of functions relating to computer vision. Cross-platform (Linux, OS X, Win2K, WinXP). Originally developed by Intel. Free for commercial and research use (view license agreement).

Uses

Object Identification & Recognition

(content-based image retrieval)

Face recognition Gesture recognition Ego-motion

(camera stabilization)
(how to input/output visual information)

Human Computer Interface

Image Processing

(image restoration, scene reconstruction)

Uses (contd)

Mobile Robotics

(controlling industrial robot, autonomous vehicle) (video surveillance) (building a 3D model from video of a moving object) (industrial inspection, medical image analysis, topographical modeling)

Motion Tracking & Understanding

Structure from Motion

Modeling Objects or Environments

Installation

Download OpenCV library from sourceforge. Run the setup.exe to install OpenCV. Set up development environment.

Tutorials/examples:

CS Wiki OpenCV Wiki

Demo

Load a color image. Convert an image color space. Convert an image from grayscale to binary. Find the contours in an image. Simple color segmentation.

Load a Color Image

In order to perform any image processing, the image must be loaded first. Use function cvLoadImage to load an image from a specified file and return a pointer to the loaded image. Supported file formats:

Windows bitmaps - BMP, DIB JPEG files - JPEG, JPG, JPE Portable Network Graphics - PNG Portable image format - PBM, PGM, PPM Sun rasters - SR, RAS TIFF files - TIFF, TIF

Convert Image Color Space

Different devices use different color spaces so a conversion may be necessary for further image processing. Use function cvCvtColor to convert image from one color space to another.

Convert Image to Binary

Binary images are produced to separate an object in the image from the background and/or for removing noise from the image. Use function cvThreshold to convert a grayscale image to a binary image.

Find Image Contours

Finding the contours in an image is useful for connected component detection, shape analysis and object recognition. Use function cvFindContours to find contours in a binary image.

Simple Color Segmentation

Images are segmented to distinguish objects from the background; it involves the classification of each image pixel to an image part. Use function cvKMeans2 to perform the K-Means clustering algorithm on the image.

Resources

OpenCV Wiki OpenCV on Sourceforge OpenCV on Intel Website

OpenCV

You might also like