Processing images with Mahotas
Mahotas is a Python library for image processing and computer vision-related tasks. It was developed by Luis Pedro.
It implements many computer vision-related algorithms. It has been implemented in C++ and it operates on NumPy arrays. It also has a clean interface for Python 3.
Mahotas currently has over 100 functions for image processing and computer vision, and that number keeps growing with every release. This project is under active development and there is a new release every few months. Apart from the added functionality, every new release brings improvements in performance.
Note:
You can learn more about Mahotas by referring to https://mahotas.readthedocs.io/en/latest/.
We can install mahotas
on Raspberry Pi with the following command:
pip3 install mahotas
A component of Mahotas will be installed in /home/pi/.local/bin
. We can add this to the PATH
variable permanently, as follows:
- Open the
~/.profile
file in editing...