facedetect command not found

In this troubleshooting guide we learn how to fix facedetect command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

facedetect: command not found

or when using sudo you get the following error message

sudo: facedetect: command not found

Solutions to facedetect: command not found

How To Fix facedetect: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu facedetect is provided by facedetect package.

facedetect is:

Facedetect is a simple face detector for batch processing. It answers the basic question: “Is there a face in this image?” and gives back either an exit code or the coordinates of each detected face in the standard output.

The aim is to provide a basic command-line interface that’s consistent and easy to use with software such as ImageMagick, while progressively improving the detection algorithm over time.

facedetect is used in software such as fgallery to improve the thumbnail cutting region, so that faces are always centered.

To fix this problem, we can install more using the command below.

sudo apt-get -y install facedetect

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install facedetect.

sudo apt -y install facedetect

Or if you have aptitude installed you can use the following command.

sudo aptitude install facedetect

Summary

In this tutorial we learn how to fix facedetect command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.