Answer the question
In order to leave comments, you need to log in
Why is Microsoft Cognitive Face not working?
I'm trying to write a Xamarin program that detects faces in a photo I just took, but calling DetectAsync throws a NullReferenceException in that part of the code. What could be the problem?
using (Stream imageFileStream = new MemoryStream(a))
{
imageFileStream.Position = 0;
var result = await faceServiceClient.DetectAsync(imageFileStream);
if (result != null)
await BlobStorageService.SaveBlockBlob("photos", a, Entry1.Text);
}
Answer the question
In order to leave comments, you need to log in
You need to look for the reason in "a - array of bytes of the image."
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question