view bindings/python/README.txt @ 659:536cfa209e7f

Sampling enhancements Allow specification of a key with -k for doing sampling between a single datum and the rest of the database. (The implementation is slightly icky, as mentioned in the previous commit message; hopefully this situation will not remain for too long). While we're at it, allow -r/--resultlength as a synonym for --nsamples (if --nsamples is not given) in order better to reflect the analogy between querying and sampling.
author mas01cr
date Tue, 05 Jan 2010 16:44:06 +0000
parents 113b2f294256
children 159becb0701e
line wrap: on
line source
README.txt

to install, try:

python setup.py build
python setup.py install

Notes: 
 - a compatible build of audioDB (>=r914) needs to be linkable at runtime
 - currently only the direct C-api exposure layer is visible, so the calling semantics are a bit gross


The actual query call is a bit of a mess, but will be more intuitive from the native python layer (to be written)...
so the python bindings now have a complete path:
	>>import _pyadb
	>>aDB = _pyadb._pyadb_create("test.adb", 0,0,0)
	>>_pyadb._pyadb_status(aDB)
	>>_pyadb._pyadb_insertFromFile(aDB, "someFeats.mfcc12")
		...(add some more data)
	>>result = _pyadb._pyadb_queryFromKey(aDB, "a Key in aDB", [options])
	
	and then result has a nice dict of your results.  



21 September 2009, Ben Fields, b.fields@gold.ac.uk