Skip to main content

OpenFocus

OpenFocus

Every pixel, its sharpest frame.

Ten fusion algorithms, five alignment choices and a source-locked retouch workspace for macro, microscopy and industrial stacks. 16-bit end to end, a headless CLI, and a UI in twelve languages.

Release Stars License: MIT Python 3.10+

Windows 10/11 macOS Apple Silicon Linux CLI PyPI

Download · Docs · Changelog · DOI

English · 简体中文 · 日本語 · Español · Deutsch · Français · Русский · 한국어 · Português · Italiano · Nederlands · Polski

OpenFocus interface

📢 News

Earlier releases are in the Changelog.

📸 If you publish images created with OpenFocus, please consider adding a note such as:

Created with OpenFocus — https://github.com/Xinzhe99/OpenFocus

This is not mandatory, but highly appreciated.

Features

AI fusion: StackMFF V3

StackMFF V3 uses AI to combine the sharpest parts of your source frames.

StackMFF V3 → · Benchmark →

StackMFF V3 versus Guided Filter on the same stack

Wipe compare

Compare a source frame with the result using a draggable divider.

Manual →

A/B wipe between a source frame and the fused result

Method comparison

Compare methods side by side and reuse the best result or settings.

Side-by-side comparison of fusion methods

Depth map & 3D

Create depth maps, calibrate physical Z, and export textured 3D surfaces.

Depth map and 3D surface of the same stack

Source-locked retouch

Paint details from contributing source frames onto the fused result.

Retouch workspace with source frame and result

Batch processing

Process multiple stacks at once, with optional grouped fusion for large stacks.

Batch processing dialog

Publication scale bars

Add calibrated scale bars to images and exports.

Manual →

Scale bar dialog with a live preview

Captions and labels

Add styled labels and captions to source frames, aligned stacks, or results.

Label manager with a live preview

Agent-drivable

Control the desktop app through a token-protected local channel.

Protocol → · Skill →

An agent drives the live GUI: load, AI render, compare, retouch, wipe, depth, labels

Also in the box:

  • Workflow — stack browser, sharpness curve, previews, ROI and reusable settings.
  • Microscopy — 16-bit processing, TIFF Z-stacks, calibration and dust correction.
  • Image formats — supported transparent PNG stacks and ICC profile preservation.
  • Headless CLI — batch processing and JSON output for scripting.
  • Projects and recovery — session files, undo/redo and crash recovery.
  • Languages — twelve UI languages with automatic locale detection.
  • Memory — neural models load only when selected.

⬇️ Install

Download the latest Windows or macOS build from the OpenFocus website. Portable builds and older versions are also available on GitHub Releases.

On macOS (Apple Silicon) or Linux, install from a terminal. Linux installs the headless CLI; macOS installs the app in ~/Applications.

curl -fsSL https://openfocus.top/install.sh | sh

On Windows, run the installer from PowerShell:

irm https://openfocus.top/install.ps1 | iex

To download the Windows installer without running it:

curl.exe -fL https://openfocus.top/download/latest/windows-setup -o OpenFocus-setup.exe

For installation and first-launch help, see the user manual.

🤖 Agent integration

The desktop app starts a token-protected local agent channel automatically. Use openfocus ctl for typed commands or generic UI actions against the live window. Agents can load stacks, render, export, open and fill dialogs, answer file pickers, send mouse/keyboard events and take screenshots.

The pip install openfocus package is headless. To use its ctl command with a separately running desktop app, also install PyQt6 (pip install PyQt6). The wheel cannot launch the desktop app; use the desktop build or a checkout.

💻 Command Line Usage

Or install the CLI on Windows, macOS and Linux — the same pipeline, no GUI stack:

pip install openfocus
openfocus -i ./stack_folder -o ./result/fused.png

See the CLI manual.

Community & Support

WeChat community: Scan with WeChat to join the OpenFocus group.

QR code for the OpenFocus WeChat group

Support OpenFocus: If you enjoy the software, you can buy us a coffee via Alipay.

Alipay QR code to support OpenFocus

License

The OpenFocus application is released under the MIT License. See also the third-party notices.

StackMFF series exception. The StackMFF fusion algorithms — currently StackMFF V3 and any future state-of-the-art editions — remain the property of the OpenFocus project, which retains all rights to the StackMFF series. You may use them as part of OpenFocus for your own images and internal work. Copying, porting or migrating these algorithms into another open-source project requires prior written permission.

Developing

Run from a checkout:

conda create -n openfocus python=3.10
conda activate openfocus
pip install -r requirements.txt
python main.py

Packaging with PyInstaller: docs/BUILD_COMMANDS.md.

Adding a fusion or registration algorithm: CONTRIBUTING.md. The extensibility specification defines the shared registration, parameter, execution and persistence contracts.

⭐ Star History

Star History Chart

Metadata

Release files for openfocus 1.75.2

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

Source distribution (sdist)

Source distribution for openfocus 1.75.2
File Size Uploaded Provenance Actions
openfocus-1.75.2.tar.gz 24.2 MB Without provenance Details for openfocus-1.75.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openfocus 1.75.2
File Interpreter ABI Platform Actions
openfocus-1.75.2-py3-none-any.whl Python 3 none any Details for openfocus-1.75.2-py3-none-any.whl

Total release size: 48.1 MB

Release files / openfocus-1.75.2.tar.gz

Download URL openfocus-1.75.2.tar.gz
Size 24.2 MB
Tags Source
SHA-256 checksum
How to use checksums
153079c8aaeb662c7c53cfaf72cd514285cfaa3cd99f80debf8f26bf3af3e887
BLAKE2b-256 checksum
How to use checksums
ac766e5c858a944f793b6e033fa2400c38957f03e20881209c5689e3e1409348
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / openfocus-1.75.2-py3-none-any.whl

Download URL openfocus-1.75.2-py3-none-any.whl
Size 23.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c33d0d77347b35d4f5b4e76f4f620b49f25bae5d5aba47e550789f3257051147
BLAKE2b-256 checksum
How to use checksums
1a187e2ac9bab1757e3e5df9f04c3d140af552e230f3f9f3ab43bff117719d7c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for openfocus 1.75.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

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