raspi-config
to enable camera or other peripherals.rpi-update
to update OSapt purge wolfram-engine
to remove bloatwarepicamera
Python APITypical swap usage applies. Via blog:
System default swap is configured in /etc/dphys-swapfile
, by value of CONF_SWAPSIZE=100
, in megabytes. After making changes, swap usage can be restarted with sudo /etc/init.d/dphys-swapfile stop; sudo /etc/init.d/dphys-swapfile start
. Changes can be verified with free -m
.
Use a high-speed-rated SD card if rapid writes are needed, such as “10” or greater as used in GoPro.
Easiest & reliable way to install an OS image using etcher
.
sudo apt purge wolfram-engine && sudo apt autoremove
sudo apt update && sudo apt upgrade && sudo rpi-update && sudo reboot
sudo apt install make build-essential screen vim git python3-dev cmake pkg-config libatlas-base-dev libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev
sudo apt update && sudo apt upgrade -y
pip3 install numpy
Other OSs
apt
supportarmhf
base packages
Don't run pip install -r requirements.txt
on a Pi as it will choke on the large packages Tensorflow, Keras, H5PY, OpenCV.
sudo apt install libhdf5-dev python3-h5py python3-scipy -y
pip3 install h5py -vvv
Tensorflow 1.9.0 now supports Raspbian:
sudo apt install libatlas-base-dev
pip3 install tensorflow
sudo pip3 install keras pyyaml
If keras doesn't install correctly, try apt
.
cd opencv && mkdir build && cd build
cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D INSTALL_-AMPLES=OFF -D INSTALL_PYTHON_EXAMPLES=ON -D OPENCV_EXTRA_MODULES_PATH=~/workspace/openc-ntrib/modules -D BUILD_EXAMPLES=ON ..
make -j3
make
sudo make install
sudo ldconfig
apt
sudo apt install build-essential python3-dev libqt4-dev