Skip to main content

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

Metadata

Release files for pyamiimage 0.0.13

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyamiimage 0.0.13
File Size Uploaded
pyamiimage-0.0.13.tar.gz 179.0 kB Details

Release files / pyamiimage-0.0.13.tar.gz

Download URL pyamiimage-0.0.13.tar.gz
Size 179.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a204adaea04daebca0c4de46565ca10a7558dfa1aa7bfdb3f46317d9f190b611
BLAKE2b-256 checksum
How to use checksums
66278f7d53f191c86e8a0584ca125d3284f14b8cdd302c064d6f41e8ff631c83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.13

Release history Release notifications | RSS feed

This release

0.0.13 This release

1 release file

0.0.12

1 release file

0.0.11

1 release file

0.0.10

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page