【发布时间】:2016-03-01 01:13:32
【问题描述】:
我需要传递一个像字节数组这样的图像 (Image _thresholdedImage)...我不知道我该怎么做。任何想法?谢谢!
_thresholdedImage.Source = ImageSource.FromStream (() => photo.Source);
var tessResult = await _tesseractApi.SetImage(imageBytes);
【问题讨论】:
-
请为
SetImage()指定函数签名。假设SetImage()采用byte[],请使用此处提供的答案:stackoverflow.com/a/23731642/5296568。将格式调整为函数期望的格式(位图,也许?)。 (我只在 zdenop.github.io/tesseract-doc/… 找到了 C++ 文档)。
标签: c# xamarin xamarin.forms