Skip to main content

otamapy

Build status

About

otamapy is Python Interface for otama (otama is CBIR.).

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)

{
    '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.

# 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]))
$ python store_and_search.py
sim=1.000, file=foo.jpg
sim=0.969, file=bar.jpg

see examples .

Metadata

Release files for otamapy 0.3.2

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

Source distribution (sdist)

Source distribution for otamapy 0.3.2
File Size Uploaded Provenance Actions
otamapy-0.3.2.tar.gz 7.5 kB Without provenance Details for otamapy-0.3.2.tar.gz

Release files / otamapy-0.3.2.tar.gz

Download URL otamapy-0.3.2.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4756d9b30bcb2c01ffefb20eb9b3834ba9d474f76abb135c1054ddbb8f1d0d53
BLAKE2b-256 checksum
How to use checksums
92f0689be95db0e8facbc03f06e10e7834bc2af707ed46f7cf35c5dd1455d5fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for otamapy 0.3.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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