Group Abstract Group Abstract

Message Boards Message Boards

0
|
7K Views
|
1 Reply
|
1 Total Like
View groups...
Share
Share this post:

Sending an Image to the API

Posted 10 years ago
Posted 10 years ago

CloudDeploy[ APIFunction[{"image" -> "Image"}, ImageIdentify[#image] &]]

Then, set the permissions public.

SetOptions[ CloudObject[ "YOUR URL HERE"], Permissions -> "Public"]

Then, you can post an image to it

$ curl --form "image=@someimage.jpg" YOUR URL HERE

and get back the response.

POSTED BY: Stephen Coast
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard