Skip to content

Plugin DECIMER Image Importer

Hiromichi Yokoyama edited this page Oct 23, 2026 · 4 revisions

Plugin: DECIMER Image Importer

DECIMER Image Importer converts chemical structure images (PNG, JPG, JPEG) into editable 2D molecular structures using the DECIMER (Deep Learning for Chemical Image Recognition) transformer model.

Repository moleditpy_DECIMER_plugin
Author HiroYokoyama
Supported OS Windows, macOS, Linux, WSL
Supported Python >=3.9, <3.15
Supported MoleditPy >=5.0.0, <6.0.0
First-party plugin license LGPL-3.0-or-later
Menu location File ▸ Import from Image (DECIMER)...
Extra dependencies DECIMER, Pillow (on Windows: tensorflow-cpu should be installed first to prevent DLL conflicts)

See Official Plugins for the full catalogue.


1. Features and workflow

Extract structures from publications, patents, slides, and web pages without manual redrawing:

  1. File dialog import: Select File ▸ Import from Image (DECIMER)... to browse for an image file.
  2. Drag-and-drop: Directly drag an image file (.png, .jpg, .jpeg) from your file manager and drop it onto MoleditPy's main window.
  3. Deep learning inference: DECIMER parses the image bitmap, reconstructs the connectivity and stereochemistry, and outputs a canonical SMILES string.
  4. Automatic loading: The recognized structure is converted to an RDKit molecule and loaded onto the 2D canvas with cleaned coordinates.

2. Architecture and responsiveness

  • Non-blocking UI: Inference (which typically takes 10–30 seconds on CPU) runs in an asynchronous background worker thread. A progress bar indicates status while MoleditPy's user interface remains completely responsive.
  • Subprocess isolation: TensorFlow and DECIMER are executed in an isolated child process. This prevents C++ library and DLL symbol conflicts between TensorFlow and PySide6/PyVista, which is especially critical on Windows.

3. Installation requirements and Windows notes

Because DECIMER relies on TensorFlow, note the following platform-specific prerequisites:

  • Python requirement: Python $\ge 3.11$.
  • Windows installation order: On Windows, install tensorflow-cpu before installing DECIMER (pip install tensorflow-cpu, followed by pip install DECIMER) to avoid GPU runtime incompatibilities and large CUDA wheel downloads when running on standard desktops.
  • Linux / macOS: Standard pip install DECIMER installs dependencies cleanly.

4. See also


This page documents DECIMER Image Importer v2.0.2, and was last updated on 2026-10-24. See REGISTRY/plugins.json for the current version.

Clone this wiki locally