OpenCV using Cloud Function(Cloud Function Python)
hi
I know this topic should actually be asked to the backend service provider who would be providing this service. Which I actually have done. I would still like to get an opinion from the OpenCV community for this as many of you would be more experienced than me.
Which of these services would work for OpenCV on backend with python?
GOOGLE APP ENGINE or COMPUTE ENGINE
Please guide.
I have already spent 2 weeks of my time trying to implement OpenCV through Google Cloud Functions BETA using Cloud Function Python ended up getting an error like this
Traceback (most recent call last):
File "function.py", line 3, in <module> File "/app/cloudfn/pip-cache-3.5/lib/python3.5/site-packages/PyInstaller/loader/pyimod03_importers.py", line 631, in exec_module File "site-packages/cv2/__init__.py", line 4, in <module> File "/app/cloudfn/pip-cache-3.5/lib/python3.5/site-packages/PyInstaller/loader/pyimod03_importers.py", line 714, in load_module ImportError: libSM.so.6: cannot open shared object file: No such file or directory
which actually requires a library called libsm6
which needs to be installed according to this link
I did pip install opencv-python==3.4.0.12
is there a way. How I can actually overcome this issue of libsm6
quickly?
PS: cloud function is suppose to be serverless so it wouldn't have libsm6
which the OpenCV requires
ah, terrible, i know. latest PIP bindings all rely on Xwindows (they're probably trying to get the gui back)
latest i could use on heroku is
opencv-python==3.3.0.9
(lacks all the dnn goodness, though)
but it's a PIP problem (not really an opencv one !), let's nagg their maintainers !
https://github.com/skvark/opencv-pyth...
I'll try with
OpenCV3.3.09
Yup! OpenCV
3.3.0.9
working on theCloud Function
usingCloud Function python
๐๐๐๐@Santosh1 , what if you write an answer, what worked for you in the end ?
@berak Something like poker with 5 aces
@LBerger, maybe i misread it, but to my experience, using prebuilt opencv (python) versions in environments like that is more like playing with 2 aces only. (it's not about a hidden one, more about restrictions, due to maintainers being late)