How To Install python-openalpr on Debian 9

In this tutorial we learn how to install python-openalpr on Debian 9. python-openalpr is Python binding for OpenALPR library

Introduction

In this tutorial we learn how to install python-openalpr on Debian 9.

What is python-openalpr

python-openalpr is:

OpenALPR is an open source Automatic License Plate Recognition library written in C++. The library analyzes images and identifies license plates. The output is the text representation of any license plate characters found in the image.

The Python package allows Python code to interface with OpenALPR directly via native Python bindings.

There are three methods to install python-openalpr on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install python-openalpr Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install python-openalpr using apt-get by running the following command:

sudo apt-get -y install python-openalpr

Install python-openalpr Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-openalpr using apt by running the following command:

sudo apt -y install python-openalpr

Install python-openalpr Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install python-openalpr using aptitude by running the following command:

sudo aptitude -y install python-openalpr

How To Uninstall python-openalpr on Debian 9

To uninstall only the python-openalpr package we can use the following command:

sudo apt-get remove python-openalpr

Uninstall python-openalpr And Its Dependencies

To uninstall python-openalpr and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove python-openalpr

Remove python-openalpr Configurations and Data

To remove python-openalpr configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge python-openalpr

Remove python-openalpr configuration, data, and all of its dependencies

We can use the following command to remove python-openalpr configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-openalpr

Dependencies

python-openalpr have the following dependencies:

References

Summary

In this tutorial we learn how to install python-openalpr package on Debian 9 using different package management tools: apt, apt-get and aptitude.