Skip to main content

owl

owl is a python project aimed at developing and evaluating the effectiveness of conversion methods from video to audio. The resulting audio could be used to learn certain method and "see" with just sound.

Requirements

  • poetry
  • portaudio-devel - required by pyaudio

Installation

poetry install

Converter hierarchy

The main aim of this project is to be extensible so that new converters can be easily built and integrated into the existing converter hierarchy.

Some converters are already implemented. The most simple ones are the CurveConverter family of converters. These converters map a space-filling curve over each frame of the input. Then the curve is walked and mapped with a frequency range. Each pixel's brightness contributes to a single sine-wave's amplitude. All sine waves (one for each pixel) are then combined into the final sound. This conversion technique is simple, but does not convey much information. It is only effective at low resolutions since higher resolutions always turn to white noise.

Another family of converters are the ScanConverter family of converters. These converters are dynamic, i.e. a single frame generates a sound which (unlike static converters) cannot be represented as a set of frequencies and their amplitudes. Converters of the ScanConverter family split the image into strips (either horizontal, vertical or circular). Then each strip is mapped with a frequency range, same as in the CurveConverter family. Each strip's sound is then sequentially played for each frame. A sound cue may be inserted at the start of each frame to signify a frame start to the user.

Examples

# each frame walked by hilbert curve of order 1 (2x2)
poetry run owl curve hilbert

# each frame walked by peano curve of order 1 (3x3)
poetry run owl curve peano

# every frame (each 500ms) gets scanned with 4 circles all having 4 samples on each circle
poetry run owl scan circular -c4 -n4 --ms-per-frame 500

# every frame (each 100ms) gets scanned column-wise left to right, 4 columns each having 4 samples
poetry run owl scan horizontal -c4 -n4 --ms-per-frame 100

Metadata

Release files for owl-framework 0.1.1

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

Source distribution (sdist)

Source distribution for owl-framework 0.1.1
File Size Uploaded
owl_framework-0.1.1.tar.gz 11.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for owl-framework 0.1.1
File Interpreter ABI Platform
owl_framework-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 27.9 kB

Release files / owl_framework-0.1.1.tar.gz

Download URL owl_framework-0.1.1.tar.gz
Size 11.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b48eeea882f1517032d9673774c2b3c86682eaa68d3793911a6a5f82d0282698
BLAKE2b-256 checksum
How to use checksums
7487e74ae982e088c2510c44f64d020751afb2b19ef188525ee619e3d34119d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.2 Windows/11

Release files / owl_framework-0.1.1-py3-none-any.whl

Download URL owl_framework-0.1.1-py3-none-any.whl
Size 16.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48aa2a4d39545a044701896c8003a8e6a7372cd628fbf3fa3336baad90de3cec
BLAKE2b-256 checksum
How to use checksums
d6e1ac5cbe24dffa2e9e09c0e6cbc13ff65e1914808768fb749d90e00c6af4b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.7.1 CPython/3.12.2 Windows/11

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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