简体   繁体   English

我可以在PyCharm中使用Google Mobile Vision API吗?

[英]Can I use Google Mobile Vision API in PyCharm?

I am exploring the APIs provided by Google . 我正在探索Google提供的API。 Firstly, I was experimenting with Google Cloud Vision API with Python in PyCharm in order to try to perform Optical Character Recognition with various texts. 首先,我在PyCharm中使用Python使用Google Cloud Vision API进行了实验,以尝试对各种文本执行光学字符识别。

So I wrote a basic program in Python in PyCharm which was calling this API, I gave to it as an input an image which included text eg the image/photo of an ice-cream bucket and then takes the text written on this bucket as an output. 所以我用PyCharm用Python写了一个基本程序,调用了这个API,我给它一个输入图像,其中包含文本,例如冰淇淋桶的image/photo ,然后将写在该桶上的文本作为输出。

Now I want to test the barcode scanner of Google Mobile Vision API . 现在,我要测试Google Mobile Vision API的条形码扫描仪。 So ideally I would like to call the Google Mobile Vision API in a python program in PyCharm which calls this API, give as an input an image/photo of a barcode and take as an output the details saved in this barcode. 因此,理想情况下,我想在PyCharm的python程序中调用Google Mobile Vision API ,该程序会调用该API,并以条形码的image/photo作为输入,并以该条形码中保存的详细信息作为输出。

My question is if this can be (easily) done with PyCharm or if I should download Android Studio to do this simple task? 我的问题是,是否可以使用PyCharm (轻松)完成此操作,还是应该下载Android Studio来完成此简单任务?

In other words, can I call easily a mobile API in an IDE which is not for mobile app development like Android Studio but in an IDE for desktop applications like Pycharm? 换句话说,我可以在IDE中轻松调用移动API吗?该IDE不是用于Android Studio之类的移动应用程序开发,而是在IDE中诸如Pycharm之类的桌面应用程序的IDE?

It may be a very basic question but I do not know if I missing something important. 这可能是一个非常基本的问题,但是我不知道我是否错过了一些重要的事情。

The mobile vision API is designed only for Android and iOS. 移动视觉API仅适用于Android和iOS。 As far as I know, Pycharm does not work well with Java, so I would say that you would have to create an Android/iOS project in order to test it (It would be a lot harder trying to make it work with python than simply installing Android studio and cloning a mock project). 据我所知,Pycharm在Java上不能很好地工作,所以我要说您必须创建一个Android / iOS项目才能对其进行测试(试图使其与python一起工作要比简单得多。安装Android Studio并克隆模拟项目)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM