We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use Image or Bitmap, it necessary need to be a path.
The text was updated successfully, but these errors were encountered:
you can convert the bitmap/image to a byte array and pass it to the predictor
static byte[] ToByteArray(System.Drawing.Image imageIn, System.Drawing.Imaging.ImageFormat fmt) { if (imageIn != null) { using (MemoryStream ms = new MemoryStream()) { imageIn.Save(ms, fmt); return ms.ToArray(); } } return new byte[] { }; } var result = await predictor.DetectAsync(ToByteArray(image, System.Drawing.Imaging.ImageFormat.Png));
Sorry, something went wrong.
Bitmap is only in Windows, you can use the code in the comment above.
Bitmap
No branches or pull requests
Cannot use Image or Bitmap, it necessary need to be a path.
The text was updated successfully, but these errors were encountered: