Face API,可以从Windows Mobile 8.1使用吗? [英] Face API, Possible to use from Windows Mobile 8.1?

查看:61
本文介绍了Face API,可以从Windows Mobile 8.1使用吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照网站上发布的教程()完成了我的WPF应用程序。

I followed the tutorial posted on the site() and it worked for my WPF application perfectly.

但是当我尝试执行相同的代码时,我遇到了一个问题:

But when I try to do the same code I have a problem here:

                   using (Stream imageFileStream = File.OpenRead(imageFilePath))
                {
                    var faces = await faceServiceClient.DetectAsync(imageFileStream);

                    var faceRects = faces.Select(face => face.FaceRectangle);

                    return faceRects.ToArray();
                }

错误说:

错误CS0103:文件在当前上下文中不存在。

Error CS0103: File does not exist in the current context.

注意:我已经使用了System.IO声明和尝试使用System.IO.File,这就是找不到命名空间的错误。这有解决方法吗?我可以使用其他类型的流,例如
作为RandomAccessStreamReference还是其他任何流?

推荐答案

可以
这个
是吗? 您使用的是Visual Studio的Community Edition吗?
Could this be it?  Are you using the Community Edition of Visual Studio?


这篇关于Face API,可以从Windows Mobile 8.1使用吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆