Skip to Content
Learn Robotics Programming
book

Learn Robotics Programming

by Danny Staple
November 2018
Beginner
472 pages
13h 5m
English
Packt Publishing
Content preview from Learn Robotics Programming

OpenCV versions

Closely related to using Python 3 is using a more recent version of OpenCV. This may perform better but, at the time of writing, it is quite long-winded to install for Python 2.7. It installs easily in Python 3 by using a PiWheel (prebuilt packages for Python on the Raspberry Pi).

I'll assume that pip3 is the Python 3 pip installer:

$ sudo pip3 install picamera[array] numpy opencv-python

Following this, only one OpenCV function appears to have changed enough to require our code to change.

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn Robotics Programming - Second Edition

Learn Robotics Programming - Second Edition

Danny Staple

Publisher Resources

ISBN: 9781789340747Supplemental Content