InquisitorJax
InquisitorJax

Reputation: 1092

Input data is not a valid image - Microsoft Cognitive Services Vision API

when using the Microsoft.ProjectOxford.Vision nuget, and calling RecognizeTextAsync(stream), I get "input data is not a valid image" error back.

The sample repo using xamarin android can be found here

Upvotes: 1

Views: 1213

Answers (1)

InquisitorJax
InquisitorJax

Reputation: 1092

You need to reset the stream before sending it with:

request.ImageStream.Seek(0, SeekOrigin.Begin);

Upvotes: 2

Related Questions