Metadata-Version: 1.1
Name: otamapy
Version: 0.3.1
Summary: otamapy is Python Interface for otama.
Home-page: https://github.com/hhatto/otamapy
Author: Hideo Hattori
Author-email: hhatto.jp@gmail.com
License: GPLv3
Description: =======
        otamapy
        =======
        
        .. image:: https://travis-ci.org/hhatto/otamapy.png?branch=master
            :target: https://travis-ci.org/hhatto/otamapy
            :alt: Build status
        
        About
        =====
        otamapy is Python Interface for otama_ (otama is CBIR.).
        
        .. _otama: https://github.com/nagadomi/otama
        .. _nv: https://github.com/nagadomi/nv
        .. _eiio: https://github.com/nagadomi/eiio
        
        
        Installation
        ============
        from pip::
        
            $ pip install --upgrade otamapy
        
        from easy_install::
        
            $ easy_install -ZU otamapy
        
        
        Requirements
        ============
        * Python2.6+ and Python3.2+
        * otama library (otama_, nv_, eiio_)
        
        Installation otama
        ------------------
        
        on MacOSX::
        
            $ sh tools/install-libotama-for-macosx.sh
        
        on Linux::
        
            $ sh tools/install-libotama.sh
        
        
        Usage
        =====
        
        config file (example.conf)
        
        .. code-block:: text
        
            {
                'namespace': 'testnamespace',
                'driver': {'name': 'color', 'data_dir': './data', 'color_weight': 0.2},
                'database': {'driver': 'sqlite3', 'name': './data/store.sqlite3'}
            }
        
        store to database, and search from database.
        
        .. code-block:: python
        
            # store_and_search.py
            from otama import Otama
            db = Otama.open('example.conf')
        
            kvs = {}
            db.create_table()
            for filename in ('foo.jpg', 'bar.jpg'):
                kvs[db.insert(filename)] = filename
        
            for result in db.search(10, 'foo.jpg'):
                key = result['id']
                print("sim=%.3f, file=%s" % (result['similarity'], kvs[key]))
        
        .. code-block:: text
        
            $ python store_and_search.py
            sim=1.000, file=foo.jpg
            sim=0.969, file=bar.jpg
        
        see examples_ .
        
        .. _examples: https://github.com/hhatto/otamapy/tree/master/examples
        
        Links
        =====
        * PyPI_
        * GitHub_
        * `Travis CI`_
        
        .. _PyPI: http://pypi.python.org/pypi/otamapy/
        .. _GitHub: https://github.com/hhatto/otamapy
        .. _`Travis CI`: https://travis-ci.org/hhatto/otamapy
        
        
Keywords: otama,CBIR
Platform: Linux
Classifier: Development Status :: 4 - Beta
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: C
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
