This is a API document for Object Detection on fashion items"
This Python package is automatically generated by the Swagger Codegen project:
- API version: 0.0.1
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com//.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com//.git
)
Then import the package:
import stylelens_detect
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import stylelens_detect
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import stylelens_detect
from stylelens_detect.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = stylelens_detect.DetectApi()
file = '/path/to/file.txt' # file | Image file to upload (only support jpg format yet) (optional)
try:
# Query to detect obejects in the image you sent
api_response = api_instance.detect_objects(file=file)
pprint(api_response)
except ApiException as e:
print("Exception when calling DetectApi->detect_objects: %s\n" % e)
All URIs are relative to http://objdetect.stylelens.io
Class | Method | HTTP request | Description |
---|---|---|---|
DetectApi | detect_objects | POST / | Query to detect obejects in the image you sent |
- Type: API key
- API key parameter name: api_key
- Location: HTTP header