I want to install opencv library on IBM Cloud Functions to be able import cv2 into a Python action.
I tried to follow this guide:
https://cloud.ibm.com/docs/openwhisk?topic=openwhisk-prep#prep_python_local_virtenv
I've done the following steps:
virtualenv virtualenv
source virtualenv/bin/activate
pip install opencv-python
deactivate
However, in this step 6:
import pyjokes
def joke(params):
return {"joke": pyjokes.get_joke()}
I didn't know how to make it suitable for opencv. Any advice is appreciated.
Thanks,