Initial configuration

The initial configuration will include installing the openCV package both on the Edison device as well as the PC.

For the PC, download Python from https://www.python.org/downloads/windows/. Next install Python on your system. Also download the latest version of openCV from https://sourceforge.net/projects/opencvlibrary/.

After you download openCV, move the extracted folder to C:. Next, browse to C:opencvuildpython2.7x86.

Finally, copy the cv2.pyd file to C:Python27Libsite-packages.

We need to install numpy as well. Numpy stands for Numerical Python. Download and install it.

Once you install all the components, we need to test whether everything is installed or not. To do that, open up the idle Python GUI and type the following:

importnumpy
import cv2

If this proceeds without any error, then everything is installed and in place as far as the PC configuration is concerned. Next, we'll configure for our device.

To configure your Edison with openCV, initially execute the following:

opkg update
opkg upgrade

Finally, after the preceding is successfully executed, run the following:

opkg install python-numpy python-opencv

This should install all the necessary components. To check whether everything is set up or not, type the following:

python 

And press the Enter key. This should enter into the Python shell mode. Next, type the following:

importnumpy
import cv2

Here is the screenshot of this:

Python shell

If this doesn't return any error message, then you are all set to go.

At first we will be covering everything in the PC and after that we'll move on to deploy it to the Intel Edison.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.15.206.25