Amazon Rekognition从流视频中检测名人 [英] Amazon Rekognition detect celebrity from stream video

查看:201
本文介绍了Amazon Rekognition从流视频中检测名人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Amazon Rekognition名人检测Ios:通过相机和照片库使用提供的图像进行面部检测。

Amazon Rekognition Celebrity Detection Ios: Done for face detection with a provided image via camera and photo library.

试图通过视频进行管理(从捆绑销售广告或实时网址中获取),以检测视频中的名人图片。

Tried to manage with video (Either from bundle or live URL), to detect celebrity image over the video.

sendVideoToRekognition(celebVideoData: video)

    func sendVideoToRekognition(celebVideoData: URL){
        //Delete older labels or buttons
        DispatchQueue.main.async {
            [weak self] in
            for subView in (self?.CelebImageView.subviews)! {
                subView.removeFromSuperview()
            }
        }
        rekognitionObject = AWSRekognition.default()
        let celebVideoAWS = AWSRekognitionVideo()
        //celebVideoAWS?.bytes = celebVideoData
        let celebRequest = AWSRekognitionRecognizeCelebritiesRequest()

    }

需要什么参数以及如何获得视频名人名称?

What parameters required and how to get video celebrity name?

推荐答案

Amazon Rekognition通过多种方式提供名人图像检测:

Amazon Rekognition provides Celebrity image detection in several ways:

RecognizeCelebrities()返回在静止图像中识别出的名人阵列。图像字节可以随调用一起提供,也可以作为Amazon S3对象提供。

RecognizeCelebrities() returns an array of celebrities recognized in a still image. The image bytes can be provided with the call, or it can be supplied as an Amazon S3 object.

StartCelebrityRecognition()开始对存储在Amazon S3中的视频中的名人进行异步识别。

StartCelebrityRecognition() starts asynchronous recognition of celebrities in a video stored in Amazon S3. This is probably what you are seeking.

请注意,Amazon Rekognition输出JSON数据,突出显示包含识别的面部的框架以及该面部在框架中的位置。它不会在视频顶部绘制框。您需要在自己的软件中执行此操作。

Please note that Amazon Rekognition outputs JSON data highlighting which frame contains a recognized face and where the face is located in the frame. It does not draw boxes on top of the video. You would need to do this in your own software.

您还可以通过提供面部收藏来识别流视频中的面部。该视频必须流式传输到Amazon Kinesis Video,并将输出已识别脸部的Kinesis流。但是,无法在流视频中识别名人,它只能在您提供的Face Collection上运行。

You can also Recognize Faces in a Streaming Video by providing a Face Collection. The video must be streamed to Amazon Kinesis Video and it will output a Kinesis stream of recognized faces. However, it is not possible to recognize celebrities in a Streaming Video — it only operates off a Face Collection that you provide.

因此, 您链接的演示视频不能在Amazon Rekognition上作为流媒体播放视频。但是,可以通过分析存储在Amazon S3中的视频,获取输出数据流,然后在应用程序中使用它来覆盖名称信息来完成此操作。

Therefore, the demonstration video that you linked can not be done on Amazon Rekognition as a streaming video. However, it could be done by analyzing a video stored in Amazon S3, taking the output data stream and then using it in an application to overlay the name information.

视频您链接的网站似乎正在使用 SightHound 中的技术。

The video you linked appears to be using technology from SightHound.

这篇关于Amazon Rekognition从流视频中检测名人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆