Monday, September 11, 2017

Back to School Sale

Machine Learning for OpenCV is one of 5,000 titles you can currently get for only $10 at www.packtpub.com as part of their big Back to School sale. Grab a copy before it's too late!

Friday, August 4, 2017

Win a free copy of Machine Learning for OpenCV

To celebrate the release of my new book, I am giving away a free copy of Machine Learning for OpenCV (Paperback, a $44 value).

You can enter the Amazon Giveaway here. Sweepstakes ends 10 August, after which the winner will be drawn randomly from all participants (18y+, must reside in US).

The book is currently trending as #1 New Release in Amazon's Computer Vision category, and initial feedback has been very favorable. Get it while it's hot!


Edit: Fixed the link to the Giveaway ^^.

Saturday, July 29, 2017

How to compress color spaces using k-means clustering

One exciting application of k-means clustering is the compression of image color spaces. Although True-color images come with a 24-bit color depth (allowing 16,777,216 color variations), a large number of colors within any particular image will typically be unused—and many of the pixels in the image will have similar or identical colors. In this post I am going to show you how you can use k-means clustering via OpenCV and Python to reduce the color palette of an image to a total of 16 colors.

Thursday, July 20, 2017

Machine Learning for OpenCV now available

My new book Machine Learning for OpenCV is now available via Packt Publishing Ltd. The book features 382 pages filled with machine learning and image processing goodness, teaching you how to master key concepts of statistical learning using Python Anaconda, OpenCV, and scikit-learn.

This will be an introductory book for folks who are already familiar with OpenCV, but now want to dive into the world of machine learning. The goal is to illustrate the fundamental machine learning concepts using practical, hands-on examples.

As always, all source code is available for free on GitHub. The book is packed with examples on how to implement different techniques in OpenCV—such as classification, regression, k-NN, support vectort machines, decision trees, random forests, Bayes classifiers, k-means clustering, and neural networks.


By the end of this book, you will be ready to take on your own Machine Learning problems, either by building on the existing source code or developing your own algorithm from scratch!

Get it while it's hot! In fact, if you act fast you can get the book for $10 on Packt's website as part of their Skill up sale! Or get it on Amazon and leave a review to tell me what you think!

The foreword to the book was written by Ariel Rokem, Senior Data Scientist at the University of Washington eScience Institute, a close colleague, collaborator, and mentor of mine. You can find out what he has to say about this book here.

The outline of the book is as follows:

  1. A Gentle Introduction to Machine Learning
  2. Working with Data Using OpenCV and Python
  3. First Steps in Supervised Learning
  4. Representing Data and Engineering Features
  5. Using Decision Trees to Make a Medical Diagnosis
  6. Detecting Pedestrians with Support Vector Machines
  7. Implementing a Spam Filter with Bayesian Learning
  8. Discovering Hidden Structures with Unsupervised Learning
  9. Using Deep Learning to Classify Handwritten Digits
  10. Combining Different Algorithms into an Ensemble
  11. Selecting the Right Model with Hyperparameter Tuning
  12. Wrapping Up

Stay tuned for example chapters and code samples!

Tuesday, June 6, 2017

Highlights and new discoveries in Neuroscience (May 2017)

In the latest edition of this monthly digest series, you can learn about bioengineered retinas for the visually impaired, how TV consumption is linked to developmental issues in children, and why our brain cells may prevent us from burning fat when we diet.

Monday, May 22, 2017

Flash sale: OpenCV with Python Blueprints for only $10

For a limited time only, you can get OpenCV with Python Blueprints and any other eBook or video for only $10 on the Packt website. That's a staggering 77% discount! The flash sale will be going on for only a few days, so if you've been toying with the idea of getting some of these books, make sure to act now.


Michael Beyeler
OpenCV with Python Blueprints
Design and develop advanced computer vision projects using OpenCV with Python


Packt Publishing Ltd., London, England
Paperback: 230 pages
ISBN 978-178528269-0
[GitHub] [Discussion Group] [Free Sample]

Sunday, May 14, 2017

Highlights and new discoveries in Neuroscience (April 2017)

In the latest edition of this monthly digest series you can learn how your brain activity changes under the influence of psychedelic drugs, why brain games won't actually make you smarter, and how gene therapy might be able to treat patients blinded from retinitis pigmentosa.

Tuesday, April 25, 2017

Pre-order now: Machine Learning for OpenCV

You might be wondering what I have been up to, since my blog has been quiet for a while. Don't worry, I'm still here!

Truth is, in the little spare time I seem to have these days, I've been working on a new book: Machine Learning for OpenCV, coming out later this year! You can pre-order it on the official website of Packt Publishing Ltd. or Amazon.

This will be an introductory book for folks who are already familiar with OpenCV, but now want to dive into the world of machine learning. The goal is to illustrate the fundamental machine learning concepts using practical, hands-on examples. As always, all source code will be available for free on GitHub.


The outline of the book is as follows:

  1. A Gentle Introduction to Machine Learning
  2. Working with Data Using OpenCV and Python
  3. First Steps in Supervised Learning
  4. Representing Data and Engineering Features
  5. Using Decision Trees to Make a Medical Diagnosis
  6. Detecting Pedestrians with Support Vector Machines
  7. Implementing a Spam Filter with Bayesian Learning
  8. Discovering Hidden Structures with Unsupervised Learning
  9. Using Deep Learning to Classify Handwritten Digits
  10. Combining Different Algorithms into an Ensemble
  11. Selecting the Right Model with Hyper-Parameter Tuning
  12. Wrapping Up

Stay tuned for more details!

Saturday, February 25, 2017 CC0

How to choose the right algorithm for your machine learning problem

With the recent machine learning boom, more and more algorithms have become available that perform exceptionally well on a number of tasks. But knowing beforehand which algorithm will perform best on your specific problem is often not possible. If you had infinite time at your disposal, you could just go through all of them and try them out. The following post shows you a better way to do this, step by step, by relying on known techniques from model selection and hyper-parameter tuning.

Sunday, February 19, 2017

Highlights and new discoveries in Computer Vision, Machine Learning, and AI (January 2017)

In the latest issue of this monthly digest series you can learn what happened at CES 2017, what's new in the world of self-driving cars, and how Intel got all these drones up in the sky during the Super Bowl's Halftime Show.

Monday, February 6, 2017

Highlights and new discoveries in Neuroscience (January 2017)

In the latest edition of this monthly digest series you can learn how dopamine cells influence our perception of time, why researchers are growing brains on a chip, whether split-brain patients have a split consciousness, and much more.

Saturday, January 21, 2017

Highlights from the 2017 Neural Computation and Engineering Connection

Once a year, researchers meet at the University of Washington (UW) in Seattle as part of the Neural Computation and Engineering Connection to discuss what's new in neuroengineering and computational neuroscience. Organized by the UW Institute for Neuroengineering, this year's topics ranged from brain-computer interfaces to rehabilitative robotics and deep learning, with plenary speakers such as Marcia O'Malley (Rice), Maria Geffen (University of Pennsylvania), and Michael Berry (Princeton).

Sunday, January 8, 2017

8 best practices to improve your scientific software

Noawadays scientists find themselves spending more and more time building software to support their research. Although time spent programming is often perceived first and foremost as time spent not doing research, most scientists have never been taught how to efficiently write software that is both correct and reusable. That's why the guys behind Software Carpentry have come up with a list of best practices to help you improve your scientific code. Because after all, to quote Ralph Johnson, before software can be reusable, it has first to be usable.

Saturday, January 7, 2017

How to install Ubuntu 16.04 alongside Windows 10 (dual boot)

Let's be honest here—who actually likes messing with partition tables? I know I don't, and every time I have to install a new Unix-based OS alongside a pre-installed Windows partition, I get a little nervous. Therefore, I thought it's never too late to write a step-by-step tutorial on how to install Ubuntu 16.04 alongside Windows 10 without falling for the common pitfalls (Secure Boot, partitioning, missing GRUB entry, etc.).