ADEEPT RaspRover User Manual page 47

Smart car robot kit for raspberry pi
Table of Contents

Advertisement

www.adeept.com
If the following contents are shown, it indicates the module is enabled successfully.
Install I2C-Tools
Install I2C-Tools to check whether the external devices are connected successfully as well as
the address of the devices. Type in the command to install:
sudo apt-get install i2c-tools
Install the Python drive program for PCA9685:
sudo pip3 install adafruit-pca9685
To install the library from source, so that you can use the PCA9685 PWM servo/LED
controller with a Raspberry Pi.
Look for more information and example at its homepage:
https://github.com/adafruit/Adafruit_Python_PCA9685/
*Now you may wonder about the difference between apt-get install and pip install, here is the
answer:
pip3
is used to download and install packages directly from PyPI (Python Package Index),
hosted by Python Software Foundation. It is a specialized package manager that only deals
with python packages.
Note:
There are two versions of Python in Raspberry Pi by default, for our Python programs
are written with Python 3.x(3.7), you need to use
pip3
instead of pip, which is used to install
software in Python 2.x.
apt-get
is used to download and install packages from Ubuntu repositories which are hosted
by Canonical.
OpenCV Installation
sudo apt-get install libopencv-dev
sudo apt-get install python-opencv
sudo pip3 install imutils
sudo pip3 install opencv-python
The libopencv-dev is a meta package. It has dependencies to many packages that do contain
the necessary libraries and header files that OpenCV require.
Python-OpenCV and OpenCV-Python are libraries of Python bindings designed to solve
computer vision problems.
More information:
https://docs.opencv.org/3.0-beta/doc/py_tutorials/py_setup/py_intro/py_intro.html
Imutils contains a series of convenient functions which make basic image processing
44

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the RaspRover and is the answer not in the manual?

Table of Contents