|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
GRIP code gen on RPI3
I have been trying to get OpenCV setup on my RPI3 while following the steps outlined in the readme on github. I am able to install numpy and pynetworktables with no problems at all. However when I try to install OpenCV with the line
Code:
sudo pip3 install opencv-python I am running Jessie Lite and made sure to install Python 3.4 aswell. Has anyone else run into this issue or see where it is I'm going wrong? Note that my experience with the RPI in general is limited, so if I haven't found it in the GRIP ReadMe's, I probably haven't done it. |
|
#2
|
|||
|
|||
|
Re: GRIP code gen on RPI3
It looks like you need to skip ahead to the "Binaries" section of that readme.
If that doesn't work, try to more in-dpeth approach described in the articles I link here. It will take much longer, but I the python one does work. Edit: Note that I have not tried either of these with Jessie Light. Last edited by BenBernard : 04-01-2017 at 07:59. |
|
#3
|
||||
|
||||
|
Re: GRIP code gen on RPI3
I got the same error. I just used the instructions posted by Adrian over at PyImageSearch: http://www.pyimagesearch.com/2016/04...ssie-opencv-3/. Worked perfectly.
|
|
#4
|
||||
|
||||
|
Re: GRIP code gen on RPI3
PyPi doesn't support binaries for the raspberry pi (or maybe even ARM at all).
I've built OpenCV python bindings for the pi 3 available here under the 'python' directory. (This will not work for other raspberry pi's -- only the 3!) Just follow the instructions in the 'Binaries' section of the README Last edited by SamCarlberg : 04-01-2017 at 19:41. |
|
#5
|
|||
|
|||
|
Re: GRIP code gen on RPI3
Quote:
|
|
#6
|
||||
|
||||
|
Re: GRIP code gen on RPI3
Which command did you run?
|
|
#7
|
|||
|
|||
|
Re: GRIP code gen on RPI3
Code:
python3 -m wheel install opencv_python_rpi3-3.1.0+39f5a48-cp34-cp34m-linux_armv7l.whl Last edited by nardavin : 05-01-2017 at 22:05. Reason: Put command in code tags |
|
#8
|
|||
|
|||
|
Re: GRIP code gen on RPI3
Ok. So upon trying to run the wheel command using the following:
Code:
sudo python3 -m wheel install ~/GRIP-code-generation/python/libs/opencv_python_rpi3-3.1.0+39f5a48-cp34-cp34m-linux_armv7l.whl Code:
Traceback (most recent call last):
File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.4/dist-packages/wheel/__main__.py", line 17, in <module>
sys.exit(main())
File "/usr/local/lib/python3.4/dist-packages/wheel/__main__.py", line 14, in main
sys.exit(wheel.tool.main())
File "/usr/local/lib/python3.4/dist-packages/wheel/tool/__init__.py", line 356, in main
args.func(args)
File "/usr/local/lib/python3.4/dist-packages/wheel/tool/__init__.py", line 299, in install_f
args.wheel_dirs, args.force, args.list_files)
File "/usr/local/lib/python3.4/dist-packages/wheel/tool/__init__.py", line 221, in install
wf.install(force=force)
File "/usr/local/lib/python3.4/dist-packages/wheel/install.py", line 326, in install
raise ValueError("Wheel file {0} would overwrite {1}. Use force if this is intended".format(k, dest))
ValueError: Wheel file opencv_python_rpi3-3.1.0+39f5a48.dist-info/metadata.json would overwrite /usr/local/lib/python3.4/dist-packages/opencv_python_rpi3-3.1.0+39f5a48.dist-info/metadata.json. Use force if this is intended
Code:
sudo Apt-get install python3 sudo Apt-get install python3-pip sudo Pip3 install wheel sudo Apt-get install git sudo Git clone https://github.com/WPIRoboticsProjects/GRIP-code-generation.git sudo python3 -m wheel install ~/GRIP-code-generation/python/libs/opencv_python_rpi3-3.1.0+39f5a48-cp34-cp34m-linux_armv7l.whl |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|