-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need Support for OpenCV #199
Comments
Yeah unfortunately I think that will be a problem since the OT-2 doesn't have a C compiler on it, and it doesn't look like there's an arm7 prebuild on pypi. If you can get opencv set up on a separate raspberry pi 3, you can probably copy the required libraries over to your OT-2. |
Oh okay. Thanks a lot! Can you guide me as to what I need to copy and from where? I've never tired this method. |
Me either but I think it should be possible. The overview of what we want to do is - and forgive me if you already know this, hopefully it will be useful to others in the future: While those libraries are in their standard places on a raspbian install, the OT-2's root filesystem is read-only. So we'll have to put these files somewhere non-standard, and point a python program to them with the use of the [url=https://man7.org/linux/man-pages/man8/ld.so.8.html] Get a raspberry pi 3 running raspbian. Install opencv: Next, you'll want to copy At that point, probably the best thing to do is to open a python shell on the OT-2 with This is kind of a pain! But I think it will work. |
Thanks! Can you also tell me what you mean by open a python shell? I'm working on the Jupyter notebook. When I run this command in Jupyter, it still says No module named 'cv2' !LD_LIBRARY_PATH=/var/user-packages/usr/lib: LD_LIBRARY_PATH=/var/usr-packages/usr/lib python -c "import cv2" |
I am unable to install OpenCV on my OT2. I need it to control a thermal camera. I am getting this error:
Command "/usr/bin/python -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-avsg5iox --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools==59.2.0 wheel==0.37.0 cmake>=3.1 pip scikit-build>=0.13.2 "numpy==1.13.3; python_version=='3.6' and platform_machine != 'aarch64' and platform_machine != 'arm64'" "numpy==1.17.0; python_version=='3.7' and platform_machine != 'aarch64' and platform_machine != 'arm64'" "numpy==1.17.3; python_version=='3.8' and platform_machine != 'aarch64' and platform_machine != 'arm64'" "numpy==1.19.3; python_version<='3.9' and sys_platform == 'linux' and platform_machine == 'aarch64'" "numpy==1.21.0; python_version<='3.9' and sys_platform == 'darwin' and platform_machine == 'arm64'" "numpy==1.19.3; python_version=='3.9' and platform_machine != 'aarch64' and platform_machine != 'arm64'" "numpy==1.21.2; python_version=='3.10' and platform_system!='Darwin'" "numpy==1.21.4; python_version=='3.10' and platform_system=='Darwin'" "numpy==1.22.0; python_version>='3.11'"" failed with error code 2 in None
The text was updated successfully, but these errors were encountered: