Polarini Focusini
Automated in-focus region detector that blends monocular depth estimation with classic frequency-domain (Difference of Gaussian - DoG) sharpness cues.
Example
What happens under the hood
- Runs Depth-Anything V2 to get floating-point depth.
- Builds a 3-level Gaussian pyramid and two Difference-of-Gaussians (DoG) maps.
- Applies Non-Maximum Suppression in space and across scales.
- Keeps only strong extrema → votes for focus → finds dominant depth bins.
- Saves every intermediate step to a per-image
debug/folder for easy inspection.
Live coding walkthrough 🎬
Watch the 90-minute live “vibe-coding” session that produced this repo (English code + English subs + Russian-language commentary):
Please cite ⭐
@misc{poliarnyi2025,
title = {Polarini Focusini: open-source pipeline for in-focus region detection},
howpublished = {\url{https://github.com/UnicornGlade/PolariniFocusini}},
author = {Poliarnyi, N.},
year = {2025},
note = {YouTube demo: “Finding Focus in Photos Using Depth Anything and DoG”}
}
Stars, forks, issues – all very welcome!
Metadata
Release files for polarini-focusini 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| polarini_focusini-0.1.3.tar.gz | 13.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| polarini_focusini-0.1.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.7 kB
Release files / polarini_focusini-0.1.3.tar.gz
| Download URL | polarini_focusini-0.1.3.tar.gz |
|---|---|
| Size | 13.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1711ea2dc080a3bd26bd200e0af977f506ee19a7af6a454434455931b4bc6206
|
|
BLAKE2b-256 checksum How to use checksums |
41d99d5a10f5819c8b5ac07dbe021d593e7c271ee5a25f1590e74dbbba7b161e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 27, 2025.
Transparency logRelease files / polarini_focusini-0.1.3-py3-none-any.whl
| Download URL | polarini_focusini-0.1.3-py3-none-any.whl |
|---|---|
| Size | 12.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c11625b779f2b2ffe6db7e55a601582c00c261aff347be25067785d1a1cd7f92
|
|
BLAKE2b-256 checksum How to use checksums |
7438f420192fd2d73a649dc9c8bad81eade4675f51e5d57cce74e21f343979d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jun 27, 2025.
Transparency log