AST image processing with Python

This notebook shows an example using the Antibiotic Susceptibility Test (AST) image processing python module.

This module allows the automatic analysis of disk diffusion AST pictures.

The analysis can be carried out step-by-step with the dedicated functions or directly by using the astimp.AST class.

The AST image processing code can be downloaded from Github.

Description and installation of the python module are available in the main README.

Parameter configuration

The image processing parameters are stored in astimp.config .

They can be displayed and set as normal python variables and will affect the analysis at run time.

Most parameters are optimized and should not be modified.

Users might want to change the antibiotic disk diameter, which is by default 6mm.

Step-by-step analysis

Load and display an AST image

Crop the Petri dish

Find and identify antibiotic disks


Analysis with the AST object

The AST objects can be used to run the whole analysis at once

The AST object stores all the measured information

Accessing single antibiotic data

The data of each antibiotic can be accessed as properties of the AST object.

Regions Of Interest

ROIs are regions that include only one antibiotic disk.


Alternative antibiotic disk detection

Antibiotic disks can be missed by the automatic analysis.

Here is a way to find a disk by the approximative coordinates of its center.

For example, This function could be called when the users click on the unidentified antibiotic disk.