AdPix API Python Client Simple Python wrapper around our AdPix API service.
Installation
The API client is available via pip.
pip install -U adpix
Usage
Simple example to detect objects in an image.
from adpix.rest import adpixApp
app = adpixApp(api_key=<YOUR_API_KEY>)
all_models = app.models.all_models
ads_model = app.models.get("custom_ads") # load a model from all_modles
img_path = "path/to/local/image"
response = ads_model.predict_by_file_name(img_path) # or predict_by_file_names(<list of file paths>)
print json.dumps(response, indent=4)