为什么Amazon Rekognition视频的MaxLabels功能无法正常工作?

0

【以下的问题经过翻译处理】 MaxLabels参数适用于Amazon Rekognition图像,但不适用于视频。我有一个PHP负载如下:

'ClientRequestToken' => (string)Str::uuid(),
            'JobTag' => VideoOperations::REKOGNITION_LABEL_DETECTION,
            'NotificationChannel' => [
                'RoleArn' => config('rekognition.notification_channel.role_arn'),
                'SNSTopicArn' => config('rekognition.notification_channel.sns_arn'),
            ],
            'MinConfidence' => config('rekognition.min_confidence'),
            'MaxLabels' => config('rekognition.max_labels'),
            'Video' => [
                'S3Object' => [
                    'Bucket' => config('rekognition.bucket'),
                    'Name' => $video->filename
                ],
            ]

我检查了官方Github AWSDocs Rekognition样本,并没有找到在视频Rekognition上实现MaxLabels的方式。这个支持视频模式吗? https://github.com/awsdocs/amazon-rekognition-developer-guide/search?q=MaxLabels

profile picture
EXPERTO
preguntada hace 8 meses52 visualizaciones
1 Respuesta
0

【以下的回答经过翻译处理】 你好,目前,在视频标签检测中不支持"MaxLabels",即在StartLabelDetection和GetLabelDetection API中不支持该参数。 在GetLabelDetection API中,可以使用"MaxResults"来指定每个分页API调用返回的最大结果数。但是,在视频中,"MaxResults"与图像中的"MaxLabels"是不同的。请参阅视频GetLabelDetection "MaxResults"的详细信息:https://docs.aws.amazon.com/rekognition/latest/APIReference/API_GetLabelDetection.html#API_GetLabelDetection_RequestSyntax。请参阅图像DetectLabels "MaxLabels"的详细信息:https://docs.aws.amazon.com/rekognition/latest/APIReference/API_DetectLabels.html#API_DetectLabels_RequestSyntax

感谢您使用Rekognition Video。

profile picture
EXPERTO
respondido hace 8 meses

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas