Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- curl -u "0xxxxxxxxxxx":"vxxxxxxxxxxxxxx"
- -X POST
- -F "positive_examples=@bottle-positive.zip"
- -F "negative_examples=@bottle-negative.zip"
- -F "name=plasticbottle"
- -k "https://gateway.watsonplatform.net/visual-recognition-beta/api/v2/classifiers?version=2015-12-02"
- {"classifier_ids": ["ClassifierName"]}
- curl -u "username":"pwd"
- -X POST
- -F "images_file=@imagefilename.jpg"
- -F "classifier_ids={"classifier_ids":["ClassifierName"]}"
- "https://gateway.watsonplatform.net/visual-recognition-beta/api/v2/classify?version=2015-12-02"
- curl -X POST
- -F "apple_positive_examples=@apples1.zip"
- -F "banana_positive_examples=@yellow.zip"
- -F "orange_positive_example=@pos_ex.zip"
- -F "negative_examples=@vegetables.zip"
- -F "name=fruit"
- "https://gateway-a.watsonplatform.net/visual-recognition/api/v3/classifiers?api_key={api-key}&version=2016-05-20"
- curl -X POST
- -F "bottle_positive_examples=@bottle-positive.zip"
- -F "negative_examples=@bottle-negative.zip"
- -F "name=plasticbottle"
- "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