-
Notifications
You must be signed in to change notification settings - Fork 535
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
Content Moderation without extension #327
Comments
@Livijn you can apply edits that use Amazon Rekognition (content moderation and smart cropping) for files without extensions, for example:
{
"bucket": "bucket_name",
"key": "file_name_without_extension",
"edits": {
"contentModeration": {
"minConfidence": 90,
"blur": 100,
"moderationLabels": [
"Smoking"
]
}
}
}
{
"bucket": "bucket_name",
"key": "file_name_without_extension",
"edits": {
"smartCrop": {
"faceIndex": 1
}
}
} |
When I use that I get this: {
"status": 500,
"code": "UnknownEndpoint",
"message": "Inaccessible host: `rekognition.eu-west-3.amazonaws.com' at port `undefined'. This service may not be available in the `eu-west-3' region."
} And base64 decoded: {
"bucket": "dogs-main",
"key": "content/79294988-ca51-43aa-8376-ceb76eb58ae4",
"edits": {
"webp": {
"quality": 80
},
"jpeg": {
"quality": 80
},
"resize": {
"width": 800,
"height": 800,
"fit": "cover"
},
"contentModeration": {
"minConfidence": 90,
"blur": 100,
"moderationLabels": [
"Smoking"
]
}
}
} |
Amazon Rekognition is not available in the |
Oh crap. Is there a way to migrate to another region without having to reupload all my files? |
You could use the same source bucket and launch the solution. Unless it's an opt-in region, it should support using a source bucket in different regions. When you launch the solution in a different region, every infrastructure resource is going to be provisioned again (e.g. CF, API Gateway) in that region. |
Ok, thanks for your help 👍 |
According to this comment you have disabled Amazon Rekognition for files without extensions. Is there any way around this? None of my files has extensions. Can I fake the extension somehow? Or would I need to rename every single file (there are tens of thousands)?
Originally posted by @G-Lenz in #188 (comment)
The text was updated successfully, but these errors were encountered: