Skip to Content
Learning Raspberry Pi
book

Learning Raspberry Pi

by Samarth Shah, Serge Schneider
April 2015
Beginner
258 pages
5h 30m
English
Packt Publishing
Content preview from Learning Raspberry Pi

A quick start to image processing

Once OpenCV is installed on your Raspberry Pi, you can start working on one of the widely used image processing library. In this section, you will learn how to perform basic image operations such as opening an image, reading an image, saving the image to other format and pixel manipulation, and so on. You will also learn about arithmetic operation on images, reading a video file, and opening a video file.

Reading and opening an image

One of the very basic operations in image processing is reading and opening an image.

  1. Open your terminal window and create a new folder titled chapter5 in which you will put all your code by executing the following command:
    cd /home/pi/
    mkdir chapter5
    
  2. Create a new python file using this ...
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

Mastering the Raspberry Pi

Mastering the Raspberry Pi

Warren W. Gay
Raspberry Pi Hacks

Raspberry Pi Hacks

Ruth Suehle, Tom Callaway

Publisher Resources

ISBN: 9781783982820