0

Is Opencv included ?

Trying to import opencv to Sololearn sandbox: import cv2 No result. Is it there ?

14th Aug 2020, 5:21 AM
zoldaten
zoldaten - avatar
3 Answers
+ 1
No, cv2 isn't included. I ran "import cv2" and the message was: Traceback (most recent call last): File "./Playground/file0.py", line 1, in <module> import cv2 ModuleNotFoundError: No module named 'cv2' Sololearn's Code Playground doesn't have much extra Python packages installed. Installing a Python package also looks kind of hopeless in Sololearn's Code Playground and that is discussed here: https://www.sololearn.com/Discuss/2442479/pip-install-not-working/
14th Aug 2020, 4:01 PM
Josh Greig
Josh Greig - avatar
0
May be just upload cv2 to Sololearn. Pip not only one way to install ?
14th Aug 2020, 7:02 PM
zoldaten
zoldaten - avatar
0
That sounds like it might be possible but unreasonably difficult. OpenCV is quite a big package but it is open source so the source code is available. https://pypi.org/project/opencv-JUMP_LINK__&&__python__&&__JUMP_LINK/#files lists a source download. Getting that to run in Sololearn's Playground sounds like Mission Impossible but you might be able to do it if you're like Tom Cruise. You could share code even if it doesn't run in Sololearn's Code Playground. You could also share on other sites like github, codepen, planet-source-code.com.
14th Aug 2020, 11:11 PM
Josh Greig
Josh Greig - avatar