magwyz / pastec

Image recognition open source index and search engine
http://pastec.io
GNU Lesser General Public License v3.0
620 stars 175 forks source link

How can I add tags for images by curl command,thanks #38

Closed polyGithub closed 8 years ago

polyGithub commented 8 years ago

curl -X PUT --data-binary @/mnt/hgfs/share2ubuntu/data/train_images/airplanes/image_0041.jpg http://localhost:4212/index/images/41

poly@poly:~/pastec/build$ curl -X POST --data-binary @/mnt/hgfs/share2ubuntu/data/test_image/image_0001.jpg http://localhost:4212/index/searcher {"bounding_rects":[{"height":105,"width":363,"x":102,"y":86}],"image_ids":[1],"scores":[609.0],"tags":[""],"type":"SEARCH_RESULTS"}

"tsgd":[""] -->How can I add tags for images by curl command,thanks

ecdeveloper commented 6 years ago

@polyGithub did you find out how to accomplish that?

nutjaa commented 6 years ago

curl -X PUT -d tag_name http://localhost:4212/index/images/12/tag