Skip to content

About

Python API wrapper for Salesforce's Einstein Vision and Language technology. Work in progress!

Resources

Stars

5 stars

Watchers

5 watching

Forks

Repository files navigation

codecov travis-ci

EinsteinVisionPython

Very much a work in progress Python Wrapper for the Einstein Predictive Vision API service - recently added methods to support Language Intent API.

Installation:

pip install EinsteinVision

Usage Example (also see examples folder for multi-threaded example)

from EinsteinVision.EinsteinVision import EinsteinVisionService

genius = EinsteinVisionService(email='<your_username@email.com>', pem_file='<pem file>')
genius.get_token()

r = genius.get_datasets_info()

# requests object
r.json()

2017-01-11 At the moment you can use this to:

  1. Read a .pem file (remember you can copy-paste your primary key into a file and name it .pem)
  2. Generate an Auth Token
  3. Send an image URL and a modelId (GeneralImageClassifier if you want) and get a prediction
  4. Upload an image file as base64 for prediction
  5. Create a dataset from an accessible zip url
  6. Train a model given a dataset id
  7. Check on status of training
  8. Parse the output of RectLabel (a json file per picture) into a csv file to train Object Detection
  9. Create a Language Intent dataset
  10. Train a Language Intent model
  11. Get predictions on a Language Intent model
  12. Apparently the developer behind RectLabel decided to remove the functionality to output data in JSON (?) so I have re-redeveloped the same functionality to take into the account the XML output, prefixed in XML_

About

Python API wrapper for Salesforce's Einstein Vision and Language technology. Work in progress!

Resources

Stars

5 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages