Mirror Fractal Codec — lossless compression for neuromorphic event camera data
Project description
Mirror Fractal Codec
Lossless compression for neuromorphic event-camera data (DVS/ATIS).
1.51 bits/event · 47.6x compression · 0.55 ms per N-MNIST sample.
Patent Pending — US Provisional #64/034,974
Install
pip install mfc-codec
Pre-built wheels for CPython 3.11 on Linux (manylinux_2_34 x86_64), macOS (arm64), and Windows (amd64).
Quick start
import mfc
events = mfc.load_nmnist("sample.bin")
compressed, stats = mfc.compress(events, width=34, height=34, t_bits=16, xy_bits=8)
print(f"{stats.compression_ratio:.1f}x, {stats.bits_per_event:.2f} bpe")
decoded = mfc.decompress(compressed)
assert events == decoded # bit-exact, lossless
Results
N-MNIST (60,000 real samples, 34×34 sensor)
| Digit | Samples | Avg events | Ratio | bpe | Encode |
|---|---|---|---|---|---|
| Total | 60,000 | 4,172 | 47.6× | 1.51 | 0.55 ms |
High-resolution synthetic
| Config | Events | Raw | Compressed | Ratio | Encode |
|---|---|---|---|---|---|
| DVS128 500K | 500K | 4,395 KB | 3.9 KB | 1,117× | 4.9 ms |
| VGA 2M | 2M | 17,578 KB | 20.0 KB | 878× | 36.9 ms |
| HD 1M | 1M | 8,789 KB | 8.5 KB | 1,040× | 58.2 ms |
Supported dataset formats
N-MNIST .bin · AEDAT 2.0 .aedat · DSEC HDF5 (Blosc/LZ4/zstd) · .npy · .evb · CSV · .dat/.raw
Links
- Live demo — https://codec.mirrorfractal.com
- Public repository (docs, examples, issues) — https://github.com/MirrorFractal/codec
- Paper / Zenodo deposit — DOI:
ZENODO_DOI_PENDING
Citation
@software{mfc_codec_2026,
author = {Solonskii, Aleksei},
title = {Mirror Fractal Codec: Lossless Compression for Neuromorphic Event Camera Streams},
year = {2026},
doi = {ZENODO_DOI_PENDING},
url = {https://codec.mirrorfractal.com}
}
License
Proprietary — all rights reserved. Patent Pending US 64/034,974.
Contact: info@mirrorfractal.com
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mfc_codec-0.3.28-cp311-cp311-win_amd64.whl.
File metadata
- Download URL: mfc_codec-0.3.28-cp311-cp311-win_amd64.whl
- Upload date:
- Size: 149.4 kB
- Tags: CPython 3.11, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa67ddccc6df06949d35ab703c1ce2c2881fc3ac12ab24dc3911fae74ff949d2
|
|
| MD5 |
f1aae66b64e4e0ac9077bb0b88f1356e
|
|
| BLAKE2b-256 |
b8387085a5b0cfd165705a5f565d5339501a7e2974c740ba8dd4689076336e54
|
Provenance
The following attestation bundles were made for mfc_codec-0.3.28-cp311-cp311-win_amd64.whl:
Publisher:
pypi.yml on MirrorFractal/mfc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mfc_codec-0.3.28-cp311-cp311-win_amd64.whl -
Subject digest:
aa67ddccc6df06949d35ab703c1ce2c2881fc3ac12ab24dc3911fae74ff949d2 - Sigstore transparency entry: 1361169830
- Sigstore integration time:
-
Permalink:
MirrorFractal/mfc@8ee9415a232d036099f4be91fa67e017d7b5ea69 -
Branch / Tag:
refs/heads/release/v0.3.28 - Owner: https://github.com/MirrorFractal
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@8ee9415a232d036099f4be91fa67e017d7b5ea69 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mfc_codec-0.3.28-cp311-cp311-manylinux_2_34_x86_64.whl.
File metadata
- Download URL: mfc_codec-0.3.28-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 237.0 kB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9bb55a4fa5d328f42b9311851bae036bc29ca689cd8c7971150dba2acc895ac
|
|
| MD5 |
5667f54084c6836023572c50917c3bed
|
|
| BLAKE2b-256 |
3b06fee5d2e118c5b0322e073b9d720e92590f728ce2fe322fac8d743be9b8d0
|
Provenance
The following attestation bundles were made for mfc_codec-0.3.28-cp311-cp311-manylinux_2_34_x86_64.whl:
Publisher:
pypi.yml on MirrorFractal/mfc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mfc_codec-0.3.28-cp311-cp311-manylinux_2_34_x86_64.whl -
Subject digest:
f9bb55a4fa5d328f42b9311851bae036bc29ca689cd8c7971150dba2acc895ac - Sigstore transparency entry: 1361169826
- Sigstore integration time:
-
Permalink:
MirrorFractal/mfc@8ee9415a232d036099f4be91fa67e017d7b5ea69 -
Branch / Tag:
refs/heads/release/v0.3.28 - Owner: https://github.com/MirrorFractal
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@8ee9415a232d036099f4be91fa67e017d7b5ea69 -
Trigger Event:
push
-
Statement type:
File details
Details for the file mfc_codec-0.3.28-cp311-cp311-macosx_11_0_arm64.whl.
File metadata
- Download URL: mfc_codec-0.3.28-cp311-cp311-macosx_11_0_arm64.whl
- Upload date:
- Size: 210.5 kB
- Tags: CPython 3.11, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f0aedd404984c424c96fa001f714265ff9cdc949a6792d5eae990310265154bf
|
|
| MD5 |
78d95c253b332f8944d4c92e63a9c90b
|
|
| BLAKE2b-256 |
56f44ff2052d1040c0d2cc38a483759b4582cc449ddd383b3e1a861ef624d35a
|
Provenance
The following attestation bundles were made for mfc_codec-0.3.28-cp311-cp311-macosx_11_0_arm64.whl:
Publisher:
pypi.yml on MirrorFractal/mfc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
mfc_codec-0.3.28-cp311-cp311-macosx_11_0_arm64.whl -
Subject digest:
f0aedd404984c424c96fa001f714265ff9cdc949a6792d5eae990310265154bf - Sigstore transparency entry: 1361169829
- Sigstore integration time:
-
Permalink:
MirrorFractal/mfc@8ee9415a232d036099f4be91fa67e017d7b5ea69 -
Branch / Tag:
refs/heads/release/v0.3.28 - Owner: https://github.com/MirrorFractal
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@8ee9415a232d036099f4be91fa67e017d7b5ea69 -
Trigger Event:
push
-
Statement type: