Skip to main content

Image analysis for words and graphics.

Project description

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

AmiImage

AmiImage class provides methods for image manipulation.

from test.resources import Resources
from pyamiimage.ami_image import AmiImage

biosynth2_path = Resources.BIOSYNTH_2
gray = AmiImage.create_grayscale_from_file(biosynth2_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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyamiimage-0.0.10.tar.gz (38.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page