numm : package documentation

Numerical arts library.
Module async Asynchronous looping interface.
Module async_main Undocumented
Module image Conversion between image files and numpy arrays.
Module io Undocumented
Module opencv Undocumented
Module sound Conversion between audio files and numpy arrays.
Module term Undocumented
Module video Undocumented

From the __init__.py module:

Class Run Asynchronous looping interface.
Function image2np Load an image file into an array.
Function np2image Save an image array to a file.
Function np2sound Save audio data to a file.
Function np2video Save video data to a file.
Function run Asynchronous looping interface.
Function sound2np Load audio data from a file.
Function video2np Load video data from a file.
def sound2np(filepath, start=0, n_frames=-1, sample_rate=44100):
Load audio data from a file.
def np2sound(np, filepath):
Save audio data to a file.

Currently, audio is always saved as WAV data.

def image2np(path):
Load an image file into an array.
def np2image(np, path):
Save an image array to a file.
def video2np(path, width=None, height=96, fps=30, start=0, n_frames=-1):
Load video data from a file.
def np2video(np, path):
Save video data to a file.

Currently, the video data is written as JPEG images in a Matroska container.

def run(**kw):
Asynchronous looping interface.

This function is a shorthand for instantiating Run and calling run on the instance; it takes the same arguments as Run.

API Documentation for numm, generated by pydoctor at 2012-04-04 22:10:45.