对于比较任务,我想将 AWS Rekognition 返回的所有数据保存在 .NET 中,在本例中是 DetectFaces,作为 json 以供以后提取。我怎样才能得到原始的json?.NET SDK 不提供任何方法。我试图序列化面部细节但没有成功。
[...]
AmazonRekognitionClient rekognitionClient = new AmazonRekognitionClient(destination::Amazon.RegionEndpoint.EUWest1);
DetectFacesRequest detectFacesRequest = new DetectFacesRequest()
{
Image = awsImage,
Attributes = new List<String>() { "ALL" }
};
try
{
DetectFacesResponse detectFacesResponse = rekognitionClient.DetectFaces(detectFacesRequest);
List<FaceDetail> details = detectFacesResponse.FaceDetails;
}catch {...}