Code Monkey home page Code Monkey logo

scipy4cv's Introduction

Introduction

About this notebook

This notebook is part of the tutorial SciPy and OpenCV as an interactive computing environment for computer vision to be presented at SIBGRAPI 2014. The tutorial will be also available as a full paper in RITA.

What are we looking for in a computer environment?

  • Data exploration and visualization
    • Images, video sequences, point clouds and feature vectors
  • Extensive list of tools
    • Image processing
    • Machine learning
    • Optimization
    • Statistics
    • Linear algebra
  • High-performance computing (HPC)
  • Promote reproducible research

Computer vision practitioners need a computing environment that lets them explore data like images, video sequences, point clouds and feature vectors. Such an environment should help on the development and testing of new models and algorithms, and on the deployment of the results, either as a final software module or a scientific/technical publication. It should also provides a extensive list of tools, routines for image processing, machine learning, statistical inference, linear algebra, convex optimization and graph algorithms, just to name a few. Problems involving large sets of images can require high- performance computing (HPC) such that the environment should provide practical ways to parallelize and distribute computation. An ideal environment should also combine documentation and computation in a single bundle, promoting results reproducibility, but preventing the research pipeline to become more cumbersome.

A Python-based environment

xkcd on Python

http://xkcd.com/353/ by Randall Munroe

  • SciPy, a scientific computing environment based on Python
    • Developed in the last 12 years
  • Based on the NumPy module for $n$-dimensional arrays
  • Not just software, but a community

In the last twelve years, a powerful scientific computing environment emerged from the Python programming community. This language is an attractive option for researchers: it is interpreted (a wanted property for interactive computing environments), dynamically typed, and presents a very concise and elegant syntax, resembling the pseudo-code found in computer science textbooks. But the tipping point for Python to become a major player in scientific computing was the advent of an efficient module for $n$-dimensional array representation and manipulation. The Numarray module was created by Greenfield et al. to address astronomical data analysis. In 2005, Numarray successor, NumPy, appeared and became the workhorse of the Python scientific computing. An active community composed of scientists and engineers flourished around Python and NumPy, represented today by the SciPy Stack and the SciPy Conferences.

Why is an interactive environment important to computer vision?

In computer vision, the practitioner is interested in inferring the world state from images, that act as observations. The statistical relation between the world state and the observed images is defined by models. A particular model is defined by parameters, chosen by learning algorithms. Finally, the world state is estimated by inference algorithms.

This vision on computer vision is properly presented by Prince in his book and translates the state-of-the-art of contemporary research in the field, which is deeply associated to machine learning nowadays.

  • Environment should enable tinkering with machine learning techniques
  • Visualization and exploration tools to address problems involving:
    • generalization,
    • overfitting,
    • dimensionality reducion,
    • optimization
  • The SciPy environment provides these capabilities

The development of these models and subsequent problems in learning and inference require a computing environment that allows proper tinkering with machine learning techniques. Visualization and exploration tools are necessary to address problems involving generalization, overfitting, dimensionality reduction and optimization. An interactive computing environment as IPython, enriched with tools from the SciPy Stack and the OpenCV library, can address these needs.

This tutorial presents:

  • interactive computing and HPC with the IPython shell;
  • OpenCV use under Python;
  • Matplotlib for visualization and 2D plotting;
  • the SciPy scientific library and
  • machine learning with the scikit-learn module
  • This tutorial provides a glimpse, not a broad and deep coverage
  • Examples should provide a starting point for the insterested user

The present tutorial provides a short overview on this Python-based computing environment. Considering the large set of tools available and the space constraints, this tutorial does not pretend to be a complete reference or a broad review. It provides just a glimpse of the environment's capabilities to the computer vision community, briefly presenting and discussing some problems and code examples. These examples can guide the user's first steps and the provided references help on the next ones.

IPython notebooks presenting the complete code for the examples are available on

[http://nbviewer.ipython.org/github/thsant/scipy4cv](http://nbviewer.ipython.org /github/thsant/scipy4cv)

and on GitHub:

[https://github.com/thsant/scipy4cv/tree/master/](https://github.com/thsant/scip y4cv/tree/master/)

scipy4cv's People

Contributors

thsant avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.