Running the code

The following are the steps to be performed:

  1. Wire the Raspberry Pi with the resistor and LED using GPIO 4 and GND. Be sure to connect GPIO 4 to the positive end of the LED (the longer leg):

  1. The next step is to install the OpenCV library onto our Raspberry Pi. At the time of writing this book, the only way I could get the library installed on my Raspberry Pi was by building it by following the steps from For Raspberry Pi Desktop users (refer to the previous tip), installing OpenCV is a simple as using the Manage packages tool in Thonny and searching on opencv-python and installing ...

Get Hands-On Edge Analytics with Azure IoT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.