Regularly, we get the question if we have an image of our Raspberry Pi with some frameworks and our deep-learning examples. We are happy to comply with this request.
- Get a 16 GB SD-card which will hold the image.
- Download the image RPi_64OS_DNN.zip (4 GByte!) from our Gdrive site.
- Flash the image on the SD-card with the Imager or balenaEtcher.
- Insert the SD-card in your Raspberry Pi 4 and enjoy.
- No WiFi installed. Password: 3.14
- You can overclock the Raspberry Pi if your SD-card is not too worn out. 1800 MHz is no problem. Most deep learning examples even work at 1950 MHz.
- If you are in need of extra space, you can delete the opencv and the opencv_contrib folder from the SD-card. There are no longer needed since all libraries are placed in the /usr/local directory.
- Use a tool like GParted
sudo apt-get install gparted
to expand the 16 GB image to larger SD-cards.
- OpenCV
- Classification
- SSD
- Segmentation
- Segmentation Yolact
- Pose
- Face detection
- Face mask detection Paddle
- Face mask detection TensorFlow
- Face recognition
- OpenCV 4.5.1
- ncnn 20210124
- MNN 1.1.0
- Paddle-Lite 2.7
- TensorFlow-Lite 2.4.1
- TensorFLow 2.4.1
- TensorFlow Addons 0.13.0-dev
- Pytorch 1.8.0
- TorchVision 0.9.0
Since everyone has a unique password on their WiFi connection, we have not activated the WiFi.
To enable the wireless LAN follow the next steps:
- Left click on the Ethernet symbol.
- Click "Turn on wireless LAN", and wait a few seconds. Your RPi will scan for available networks.
- Left click again on the Ethernet symbol and choose your network.
- Give your key, and wait a couple of seconds to let the RPi establish the connection.
- Success!
Importing both TensorFlow and OpenCV in Python can throw the error: cannot allocate memory in static TLS block.
This behaviour only occurs on an aarch64 system and is caused by the OpenMP memory requirements not being met.
For more information, see GitHub ticket #14884.
There are a few solutions. The easiest is to import OpenCV at the beginning, as shown above.
The other is disabling OpenMP by setting the -DBUILD_OPENMP and -DWITH_OPENMP flags OFF.
Where possible, OpenCV will now use the default pthread or the TBB engine for parallelization.
We don't recommend it. Not all OpenCV algorithms automatically switch to pthread.
Our advice is to import OpenCV into Python first before anything else.