我可以在没有S3存储桶的情况下使用Amazon Rekognition吗?

编程入门 行业动态 更新时间:2024-10-10 06:16:31
本文介绍了我可以在没有S3存储桶的情况下使用Amazon Rekognition吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想将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吗?

本文发布于:2023-11-28 08:24:04,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641652.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:情况下   Rekognition   Amazon

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!