我可以在没有S3存储桶的情况下使用Amazon Rekognition吗? [英] Can I use Amazon Rekognition without an S3 bucket?
问题描述
我想将Firebase与Amazon Rekognition一起使用吗?
I want to use the Firebase with the Amazon Rekognition is it possible to use?
我阅读了Node.js的Rekognition类,它在其中具有S3命令。代码。
I read Class for Rekognition for Node.js it has the S3 command in the code.
推荐答案
否,如果您不想使用 s3 。使用s3可提供低延迟,但您可以直接通过API调用使用 Rekognition 服务,API调用的响应将在 json 中包含您想要的结果
No , you don't need to use s3 if you don't want. Using s3 provides low latency but you can use Rekognition services directly via API calls , the response of the API calls will contain your desired results in json format which you can use as you want.
此外,如果您使用直接API调用,则必须以 base-64编码传递图像
Further if you use direct API calls , then you have to pass your images in base-64 encoded format while using REkognition API's.
此外,您还可以将AWS开发工具包(SDK)用于不同的编程语言,这将使您的任务更轻松地轻松使用不同的AWS服务。
Also you can use AWS SDK's for different programming languages which will make your task easier to use different AWS services easily.
例如用于检测python中的标签:
e.g for detecting labels in python :
import boto3
from PIL import Image
import io
local='images/4.jpeg'
client = boto3.client('rekognition')
image = Image.open(local)
stream = io.BytesIO()
image.save(stream,format="JPEG")
image_binary = stream.getvalue()
response = client.detect_labels(
Image={'Bytes':image_binary}
)
print(response)
服务将需要s3才能正常工作。
while some rekognition services will require s3 to work.
这篇关于我可以在没有S3存储桶的情况下使用Amazon Rekognition吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!