![](/img/trans.png)
[英]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.