[英]Is it possible to highlight detected text using the Google Cloud Vision Nuget in Xamarin?
[英]Is it possible to detect Gender using Google.Cloud.Vision
我找到了一些检测人脸的代码示例:
var image = Image.FromFile(filePath);
var client = ImageAnnotatorClient.Create();
var response = client.DetectFaces(image);
int count = 1;
foreach (var faceAnnotation in response)
{
Console.WriteLine("Face {0}:", count++);
Console.WriteLine(" Joy: {0}", faceAnnotation.JoyLikelihood);
Console.WriteLine(" Anger: {0}", faceAnnotation.AngerLikelihood);
Console.WriteLine(" Sorrow: {0}", faceAnnotation.SorrowLikelihood);
Console.WriteLine(" Surprise: {0}", faceAnnotation.SurpriseLikelihood);
}
但是我在 faceAnnotation 中找不到“IsMale”或“Gender”属性。 如何使用 Google.Cloud.Vision 检测性别?
我认为 AWS Rekognition 可以提供性别:
问:我可以从 Amazon Rekognition 获得哪些人脸属性?
Amazon Rekognition 为检测到的每张脸返回以下面部属性,以及每个属性的边界框和置信度分数:
请参阅: https ://aws.amazon.com/rekognition/faqs/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.