Dosage

Dosage is a Python library to perform visual saliency detection on images and videos.

Background

Visual saliency detection aims at identifying regions of an image that stand out to the human eye. Under certain constraints, it can be an effective way of isolating objects of interest (salient object detection).

Features

Real Time

On a modern laptop, it can be run at ~30 fps at 720p.

Lightweight

It is CPU based, has only two Python runtime dependencies (numpy and opencv), and the C backend has zero dependencies other than pthreads.

Highly Configurable

Supports three different saliency detection methods as well as fine grain control via a large array of parameters.

Is it for me?

If your sole goal is getting the absolute best possible output quality even in the most complex of scenarios you may be better off with heavier, often slow state-of-the-art ML based methods. If however, you care about quality as well as speed and portability, Dosage could be a good choice.