Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zaneli/docomocvpy

docomo computer vision API Python wrapper library
https://github.com/zaneli/docomocvpy

Last synced: 28 days ago
JSON representation

docomo computer vision API Python wrapper library

Awesome Lists containing this project

README

        

=======
docomocvpy
=======

`docomo 画像認識 API`_ の Python ラッパーライブラリです。

.. image:: https://api.travis-ci.org/zaneli/docomocvpy.png?branch=master
:target: https://travis-ci.org/zaneli/docomocvpy

Requirements
=======

- Python 3.4

Installation
=======

::

$ pip install git+https://github.com/zaneli/docomocvpy

Usage
=======

::

from docomocv import DocomoCVClient, Recog

client = DocomoCVClient()

# Get image recognition candidates
result = client.recognize('./food_package_img.jpg', Recog.food)

# Send feedback
client.feedback(result['recognitionId'], True)

# Send feedback to each candidate
client.feedback_to_candidate(result['recognitionId'], result['candidates'][0]['itemId'], True)

.. _`docomo 画像認識 API`: https://dev.smt.docomo.ne.jp/?p=docs.api.page&api_docs_id=102