简体   繁体   English

我可以在Google应用引擎上使用带有python的open cv吗?

[英]Can I use open cv with python on Google app engine?

HI actually I was working on a project which i intended to deploy on the google appengine. 我实际上是在研究一个我打算在google appengine上部署的项目。 However I found that google app engine is supported by python. 但是我发现python支持谷歌应用引擎。 Can I run openCV with python scripts on Google app engine? 我可以在Google应用引擎上使用python脚本运行openCV吗?

No. GAE only supports either pure python extensions or extensions that they are supplying themselves. 不.GAE仅支持纯python扩展或它们自己提供的扩展。

OpenCV uses C, so it is not suitable. OpenCV使用C,因此不适合。

The interpreter can run any Python code, including Python modules you include with your application, as well as the Python standard library. 解释器可以运行任何Python代码,包括您的应用程序包含的Python模块,以及Python标准库。 The interpreter cannot load Python modules with C code; 解释器无法使用C代码加载Python模块; it is a "pure" Python environment. 它是一个“纯粹的”Python环境。

https://developers.google.com/appengine/docs/python/overview https://developers.google.com/appengine/docs/python/overview

Pure Python and GAE 纯Python和GAE

No. OpenCV is a Python wrapper to a C++ library, and Google App Engine can only run pure Python code. OpenCV是C ++库的Python包装器,而Google App Engine只能运行纯Python代码。

Google App Engine accepted this issue on May 9, 2012 , but it has not gotten anywhere yet. 谷歌应用引擎在2012年5月9日接受了这个问题 ,但它还没有到位。

Now it is possible. 现在有可能。 The app should be deployed using a custom runtime in the GAE flexible environment. 应该在GAE灵活环境中使用自定义运行时部署应用程序。 OpenCV library can be installed by adding the instruction RUN apt-get update && apt-get install -y python-opencv in the Dockerfile. 可以通过在Dockerfile中添加指令RUN apt-get update && apt-get install -y python-opencv来安装OpenCV库。

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

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