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.
Download · Docs · Changelog · DOI
English · 简体中文 · 日本語 · Español · Deutsch · Français · Русский · 한국어 · Português · Italiano · Nederlands · Polski
📢 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
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.
StackMFF V1/V2/V3 use dynamic ONNX checkpoints and ONNX Runtime; production inference does not bundle PyTorch. The current runtime can use DirectML on Windows or CoreML on macOS and falls back to CPU when needed. A provider being available does not prove GPU execution; support across GPU hardware still needs validation. See GPU support.
Neural inference adapts spatial tile size to available resources while keeping all focal frames in each inference. Imported frames and alignment scratch can use disk-backed storage. Large stacks still require enough free temporary disk space and available memory for decoding, model workspaces and full-size output; they may be rejected when those resources are insufficient. StackMFF V2's spatial tiling is an approximation of whole-image inference and can change the result. See fusion methods.
⬇️ 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.
- Skill:
skills/openfocus-control/SKILL.md - Protocol and command reference:
docs/AGENT_CONTROL_SPEC.md - End-to-end runner:
python tools/agent_gui_smoke.py --launch - Every-action sweep:
python tools/agent_action_sweep.py --launch
💻 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
Questions, ideas or feedback? Join our Discord community. We reply as soon as we can; we're based in Beijing (UTC+8), so time differences may affect response times.
- Docs — User Manual (twelve languages) · Changelog · Performance · Fusion methods
- Code signing policy · Privacy policy
- Citation — CITATION.cff; every release is archived on Zenodo (DOI)
- Feedback — open an issue for bugs, ideas and algorithm work
- Credits — each fusion/registration algorithm keeps its original research licence; StackMFF V3 lives at Xinzhe99/StackMFF-V3
WeChat community: Scan with WeChat to join the OpenFocus group.
Support OpenFocus: If you enjoy the software, you can buy us a coffee via Alipay in China or PayPal internationally. Include your username in the payment note and we will permanently acknowledge it in the project as a thank-you.
License
The OpenFocus application is released under the MIT License. The retrained StackMFF V1/V2 wrappers and weights have separate StackMFF V3 License 1.0 terms, which restrict redistribution, inclusion in other projects and commercial use without the licensor's prior written permission. The bundled StackMFF V3 v2.0 snapshot remains MIT licensed. See the full third-party notices for provenance and terms.
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
Metadata
Release files for openfocus 1.76.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openfocus-1.76.0.tar.gz | 3.0 MB | Without provenance | Details for openfocus-1.76.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openfocus-1.76.0-py3-none-any.whl | Python 3 | none | any | Details for openfocus-1.76.0-py3-none-any.whl |
Total release size: 5.6 MB
Release files / openfocus-1.76.0.tar.gz
| Download URL | openfocus-1.76.0.tar.gz |
|---|---|
| Size | 3.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99d5cfec13e0f7dfc8003f9dcc3ae5981d699476a9d255145e74b7f73fa9e918
|
|
BLAKE2b-256 checksum How to use checksums |
280769b7e75fc961a0ba29ab3e735e7d2393b5485f77c1b1d5472714c9e940b2
|
| 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.76.0-py3-none-any.whl
| Download URL | openfocus-1.76.0-py3-none-any.whl |
|---|---|
| Size | 2.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3ea4d7862bfaba78e6242439626b0b3bd6886e5c3609d93b764a90cc5c100373
|
|
BLAKE2b-256 checksum How to use checksums |
73e956694ab3cde25b91761402d60f957c34d33b2dd3133bb5fb3922abc0eaf3
|
| 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.76.0
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.