We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have some problems with this library when getting tags for videos. The problem is this:
This is an example response from the tag endpoint for a .mp4 video:
.mp4
{ "results": [ { "result": { "classes": [ [ "no person", "indoors",
And this is a response for an image:
{ "results": [ { "result": { "tag": { "classes": [ "keyboard",
The classes field is an array of strings for images, but an array of an array of strings for videos.
classes
This is the diff which fixes the video responses:
diff --git a/requests.go b/requests.go index 22fdb06..96bb70b 100644 --- a/requests.go +++ b/requests.go @@ -56,9 +56,9 @@ type TagResult struct { LocalID string `json:"local_id"` Result struct { Tag struct { - Classes []string `json:"classes"` + Classes [][]string `json:"classes"` CatIDs []string `json:"catids"` - Probs []float32 `json:"probs"` + Probs [][]float32 `json:"probs"` } } DocIDString string `json:"docid_str"`
But this will break the image tag response.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have some problems with this library when getting tags for videos. The problem is this:
This is an example response from the tag endpoint for a
.mp4
video:And this is a response for an image:
The
classes
field is an array of strings for images, but an array of an array of strings for videos.This is the diff which fixes the video responses:
But this will break the image tag response.
The text was updated successfully, but these errors were encountered: