Clarifai v0.2.1 Clarifai View Source
Access point for all the public methods.
Link to this section Summary
Functions
Returns predictions for the given urls
Link to this section Functions
Link to this function
predict(urls, models \\ ["general-v1.3"])
View Source
predict([binary, ...], [binary]) :: {:ok, %Clarifai.Structs.Response{predictions: term}}
Returns predictions for the given urls.
N.B. An API request is made for each url for each model due to the way Clarifai’s API operates. Eg. Predictions for 15 urls across 3 models will result in a total of 45 API calls. If there is a better way to do this, feel free to open up an issue @ https://github.com/ChanChar/clarifai or submit a PR.
Returns a Clarifai.Structs.Response
containing the predictions.
Each image has one prediction and each prediction can have many tags grouped by model.