Description Usage Arguments Details Value See Also Examples
Connect to a Custom Vision predictive service
1 2 3 | classification_service(endpoint, project, name)
object_detection_service(endpoint, project, name)
|
endpoint |
A prediction endpoint object, of class |
project |
The project underlying this predictive service. Can be either an object of class |
name |
The published name of the service. |
These functions are handles to a predictive service that was previously published from a trained model. They have predict
methods defined for them.
An object of class classification_service
or object_detection_service
, as appropriate. These are subclasses of customvision_predictive_service
.
customvision_prediction_endpoint
, customvision_project
predict.classification_service
, predict.object_detection_service
, do_prediction_op
1 2 3 4 5 6 7 8 9 10 11 | ## Not run:
endp <- customvision_training_endpoint(url="endpoint_url", key="key")
myproj <- get_project(endp, "myproject")
# getting the ID from the project object -- in practice you would store the ID separately
pred_endp <- customvision_prediction_endpoint(url="endpoint_url", key="pred_key")
classification_service(pred_endp, myproj$project$id, "publishedname")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.