Skip to main content

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

Citation

@software{mfc_codec_2026,
  author = {Solonskii, Aleksei},
  title  = {Mirror Fractal Codec: Lossless Compression for Neuromorphic Event Camera Streams},
  year   = {2026},
  doi    = {10.5281/zenodo.19704064},
  url    = {https://codec.mirrorfractal.com}
}

License

Proprietary — all rights reserved. Patent Pending US 64/034,974.

Contact: info@mirrorfractal.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

mfc_codec-0.3.29-cp311-cp311-win_amd64.whl (127.7 kB view details)

Uploaded CPython 3.11Windows x86-64

mfc_codec-0.3.29-cp311-cp311-manylinux_2_34_x86_64.whl (214.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

mfc_codec-0.3.29-cp311-cp311-macosx_11_0_arm64.whl (191.6 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

File details

Details for the file mfc_codec-0.3.29-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: mfc_codec-0.3.29-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 127.7 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

Hashes for mfc_codec-0.3.29-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 f15961dccdf324a229b55018a516925bd0e25aa05d3dde45be116fbe8c7895ca
MD5 f995a754e604fe090314c9871167f165
BLAKE2b-256 1a172e3d4baec45c753e0924cb62cd2ab191c85935e67152a99f27dc34499944

See more details on using hashes here.

Provenance

The following attestation bundles were made for mfc_codec-0.3.29-cp311-cp311-win_amd64.whl:

Publisher: pypi.yml on MirrorFractal/mfc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mfc_codec-0.3.29-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for mfc_codec-0.3.29-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4240bf432be8a858efeaba85a289c784ac68c2f5cc382d49772e1d085ad0cd94
MD5 f855d98df968a727421211e5b4d917af
BLAKE2b-256 b946a2ddbb0cb9636ea87e1bf27e6aea70ac7caba32454228afbc2146efa907a

See more details on using hashes here.

Provenance

The following attestation bundles were made for mfc_codec-0.3.29-cp311-cp311-manylinux_2_34_x86_64.whl:

Publisher: pypi.yml on MirrorFractal/mfc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mfc_codec-0.3.29-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for mfc_codec-0.3.29-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2aaed289b29c86549204234e1c9ae1b43a7f5eedca4d8bba7d540647d98a865c
MD5 db4f44fefc2681a82b1ec1c846a6e34b
BLAKE2b-256 45f689423f515c27fe77942c2418e0d6afaec2ab0041050c5d2bf2cb9e398f87

See more details on using hashes here.

Provenance

The following attestation bundles were made for mfc_codec-0.3.29-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: pypi.yml on MirrorFractal/mfc

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page