Closed ifellinaholeonce closed 7 months ago
Thanks for opening up an issue. What version of aws-sdk-rekognition are you using? The latest version is 1.94.0.
I don't use rekognition, but it looks like to use the V7 label categories (the Drugs & Tobacco label), you need to opt in to some private version?
https://docs.aws.amazon.com/rekognition/latest/dg/moderation.html#moderation-labels-update-sdk
Sorry I should have specified the gem version. It is indeed the newest
aws-sdk-rekognition (1.94.0)
aws-sdk-core (~> 3, >= 3.191.0)
aws-sigv4 (~> 1.1)
That is interesting @mullermp about the private version. The response does state moderation_model_version="6.1"
, so maybe this is the missing piece.
@mullermp I think this is the information I was missing (I swear this wasn't in the docs yesterday 😂). Looks like I just happened to show up during a transition time. I don't think there is anything more to do here so I am going to close this. Thanks for the help.
This issue is now closed. Comments on closed issues are hard for our team to see. If you need more assistance, please open a new issue that references this one.
No worries. I'm glad that was the answer. @RanVaknin from the support team informed me that on May 24, that new version will become default.
Let me know about those nil members. I'm fairly confident (99.99% sure) that we are parsing the service responses correctly - we have very extensive tests on this per protocol. It's likely that the version of the model from the service simply just does not return any values for those.
Describe the bug
I have recently started using the Rekognition API for video content moderation. I noticed that the responses I have been getting do not match the documentation in a couple of ways - the labels themselves use different words than the docs, and a number of fields on the object are
nil
.I was able to find older documentation using Wayback Machine here that seems to better match the current behaviour. The labels properly align and the
nil
fields are not documented.Is it possible the gem updated the
struct
for the responses but is not hitting the right version of the API or something? I haven't noticed anywhere that specifying an API version was necessary. Am I possibly simply missing a configuration setting?Expected Behavior
struct Aws::Rekognition::Types::ContentModerationDetection
should properly match documented behaviour found here and here.Current Behavior
struct Aws::Rekognition::Types::ContentModerationDetection
is missing some fields and uses undocumented labels. Notice in the below snippet in themoderation_labels
array that each element is missing values fortaxonomy_level
,start_timestamp_milis
,end_timestamp_milis
andduration_milis
. Also notice that some of the names of labels are "Tobacco", for example, which do not match any of the name in the docs. I would expect it to be either "Drugs & Tobacco" or "Drugs & Tobacco Paraphernalia & Use" in this case.Reproduction Steps
Upload a video to S3, start content moderation and then get content moderation..
Possible Solution
No response
Additional Information/Context
No response
Gem name ('aws-sdk', 'aws-sdk-resources' or service gems like 'aws-sdk-s3') and its version
aws-sdk-rekognition
Environment details (Version of Ruby, OS environment)
ruby 3.2.3p157