Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to return filenames as local_id in response json objects? #10

Closed
zuhaagha opened this issue Jul 6, 2015 · 1 comment
Closed

How to return filenames as local_id in response json objects? #10

zuhaagha opened this issue Jul 6, 2015 · 1 comment

Comments

@zuhaagha
Copy link

zuhaagha commented Jul 6, 2015

Hi

I am running clarifai Python client to tag images in a folder on my local drive. I get the response array of tags for all images, however, I am unable to determine which response corresponds to which image as the order of images is not the same as that in the folder.

I would like to know if there a way to return image filename in response json object along with the tags? The documentation says there is a response parameter local_id which is "a user-supplied identifier, echoed back in each result if supplied in the request, or the URL of the image is returned if available." Can anyone tell me the syntax to provide local_id when making a call to api.tag_images(images) for a folder?

Any help would be appreciated!

@zuhaagha
Copy link
Author

zuhaagha commented Jul 7, 2015

Hi

I figured it out!

@zuhaagha zuhaagha closed this as completed Jul 7, 2015
josh-tepper pushed a commit that referenced this issue Aug 11, 2023
… modules (#10)

* bump to 0.1.11

* splitting all urls

* fix errors

* added tess and fixed order

* refactored things

* bump

* Update clarifai_utils/urls/helper.py

Co-authored-by: Andrey <[email protected]>

* Update helper.py

* Update requirements.txt

* made the url stripping better

* much better

Co-authored-by: Andrey <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant