How to import OpenCV in Python3?
-
Hi @Alex123 ,
The opencv-3-4-6 project above isn't a python3 package installation rather for c++, for example:
examples/april-tag-detect/april-tag-detect.cpp · master · voxl / VOXL SDK / Third Party / voxl-opencv · GitLab
This project describes how to build OpenCV for ModalAI's VOXL platform and provides a simple example.
GitLab (gitlab.com)
Are you requirements Python3.6.9 and OpenCV 3.X? (let me know specifics if possible).
If so, do you requirements allow you to run your program in a Docker container on VOXL?
Thanks!
-
Yes, I have to run my program using Python3.6.9 and OpenCV 4.X.
And it wouldn't allow running a program on Docker container on VOXL. -
The easiest path is to use an Ubuntu Docker container on VOXL. https://docs.modalai.com/docker-on-voxl/
Otherwise you will have to build the python bindings for OpenCV. We have never tried this, but it looks well documented here: https://docs.opencv.org/master/da/d49/tutorial_py_bindings_basics.html
-
@Chad-Sweet
If I'll use an Ubuntu Docker container on VOXL, can you provide documentation or steps using which I can build OpenCV4.x on Python 3.6.9?Or a pre-build file of OpenCV4.x for Python3.6.9?
Thanks!
-
How can I use OpenCV4.x with Python3.6.9 using Ubuntu Docker container on VOXL?
-
You can use apt to install, follow any normal Ubuntu instructions
-
The easiest path is to use an Ubuntu Docker container on VOXL. https://docs.modalai.com/docker-on-voxl/
Otherwise you will have to build the python bindings for OpenCV. We have never tried this, but it looks well documented here: https://docs.opencv.org/master/da/d49/tutorial_py_bindings_basics.html
@Chad-Sweet
I'm using the Ubuntu Docker container on VOXL.
OpenCV4 in Python3 is working.But I'm facing issues while mounting sdcard on it.
I'm referring to this link.I'm using the below command to mount sdcard.
docker run -v /mnt/sdcard:/root/yoctohome/:rw -w /root/ roskinetic-xenial:opencvHow can I mount a sdcard on the Ubuntu Docker container on VOXL?
-
@Chad-Sweet
I'm using the Ubuntu Docker container on VOXL.
OpenCV4 in Python3 is working.But I'm facing issues while mounting sdcard on it.
I'm referring to this link.I'm using the below command to mount sdcard.
docker run -v /mnt/sdcard:/root/yoctohome/:rw -w /root/ roskinetic-xenial:opencvHow can I mount a sdcard on the Ubuntu Docker container on VOXL?
-
@Alex123 You should be able to mount the sdcard directory using the following param
docker run -v /sdcard:/sdcard
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login