Skip to content

petermr/pyamiimage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9563a2c · Mar 2, 2023
Oct 17, 2021
Jun 13, 2022
Jan 31, 2022
Apr 4, 2022
Jul 31, 2022
Nov 23, 2021
Nov 20, 2021
Nov 22, 2021
Mar 2, 2023
Mar 2, 2023
Jan 31, 2022
Mar 28, 2022
Feb 8, 2022
Oct 15, 2021
Jun 10, 2022
Jan 28, 2022
Mar 15, 2022
Nov 18, 2021
Mar 16, 2022
Apr 1, 2022
Jan 24, 2023
Mar 26, 2022
Mar 28, 2022
Jun 10, 2022

Repository files navigation

pyamiimage

pyamiimage is a set of tools to extract semantic information from scientific diagrams.

The current goal is to extract terpene synthase pathway diagrams. 'Extraction' means that we will go from pixel values in an image to a 'smart diagram'. The output of pyamiimage is an image with annotations of substrate, products and enzymes.

We are working to add more support for open formats that encode chemical/pathway information such as CML and GPML.

Installation

Tesseract

To run pyamiimage on your local system you need to have Tesseract installed. If you don't have Tesseract installed, install it from here.

pip install pyamiimage

Usage

pyamiimage is a command-line tool and can be accessed via the terminal or command prompt. To bring up the help run:

pyamiimage --help

You can also include pyamiimage in your program using the provided classes.

AmiImage

AmiImage class provides methods for image manipulation.

from pyamiimage.ami_image import AmiImage

gray = AmiImage.create_grayscale_from_file(image_file_path)

AmiGraph

AmiGraph class generate a graph from arrows in a diagram.

AmiOCR

AmiOCR class provides methods to extract words from the iamge. Uses Tesseract.

Timeline

merged main into nodes_and_pixels and re-branched