Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
303
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. curl -u "0xxxxxxxxxxx":"vxxxxxxxxxxxxxx"
  2. -X POST
  3. -F "positive_examples=@bottle-positive.zip"
  4. -F "negative_examples=@bottle-negative.zip"
  5. -F "name=plasticbottle"
  6. -k "https://gateway.watsonplatform.net/visual-recognition-beta/api/v2/classifiers?version=2015-12-02"
  7.  
  8. {"classifier_ids": ["ClassifierName"]}
  9.  
  10. curl -u "username":"pwd"
  11. -X POST
  12. -F "images_file=@imagefilename.jpg"
  13. -F "classifier_ids={"classifier_ids":["ClassifierName"]}"
  14. "https://gateway.watsonplatform.net/visual-recognition-beta/api/v2/classify?version=2015-12-02"
  15.  
  16. curl -X POST
  17. -F "apple_positive_examples=@apples1.zip"
  18. -F "banana_positive_examples=@yellow.zip"
  19. -F "orange_positive_example=@pos_ex.zip"
  20. -F "negative_examples=@vegetables.zip"
  21. -F "name=fruit"
  22. "https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classifiers?api_key={api-key}&version=2016-05-20"
  23.  
  24. curl -X POST
  25. -F "bottle_positive_examples=@bottle-positive.zip"
  26. -F "negative_examples=@bottle-negative.zip"
  27. -F "name=plasticbottle"
  28. "https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classifiers?api_key={api-key}&version=2016-05-20"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement