Go to Post If you plan the work and work the plan, you will very likely make it to the district championship. - IKE [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 04-01-2017, 03:46
cad321 cad321 is offline
Jack of all trades, Master of none
AKA: Brian Wagg
FRC #2386 (Trojans)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Burlington, Ontario
Posts: 319
cad321 is just really nicecad321 is just really nicecad321 is just really nicecad321 is just really nice
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 told, "No distributions found at all for 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.
Reply With Quote
  #2   Spotlight this post!  
Unread 04-01-2017, 07:37
BenBernard BenBernard is offline
Registered User
FRC #5687 (The Outliers)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Portland, ME
Posts: 39
BenBernard is an unknown quantity at this point
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.
Reply With Quote
  #3   Spotlight this post!  
Unread 04-01-2017, 19:25
jojoguy10's Avatar
jojoguy10 jojoguy10 is offline
Programming/Controls Mentor
AKA: Joe Kelly
FRC #0997 (Spartan Robotics) and FRC #2990 (Hotwire Robotics)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2010
Location: Stayton, OR
Posts: 279
jojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of lightjojoguy10 is a glorious beacon of light
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.
__________________


Reply With Quote
  #4   Spotlight this post!  
Unread 04-01-2017, 19:36
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
AKA: Sam Carlberg
no team
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 45
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
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
__________________
WPILib
GRIP, RobotBuilder

Last edited by SamCarlberg : 04-01-2017 at 19:41.
Reply With Quote
  #5   Spotlight this post!  
Unread 05-01-2017, 21:36
nardavin nardavin is offline
Registered User
FRC #2403 (Plasma Robotics)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2014
Location: Gilbert, Arizona
Posts: 20
nardavin is on a distinguished road
Re: GRIP code gen on RPI3

Quote:
Originally Posted by SamCarlberg View Post
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
This does not work for me. When I call the command, nothing appears to happen. It just goes to the next line in the terminal.
__________________
Team 2403: Plasma Robotics

Member 2014-2017, Head Programmer 2015-2016, Leadership Team 2016-2017, Co-President 2017



Reply With Quote
  #6   Spotlight this post!  
Unread 05-01-2017, 21:46
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
AKA: Sam Carlberg
no team
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 45
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
Re: GRIP code gen on RPI3

Which command did you run?
__________________
WPILib
GRIP, RobotBuilder
Reply With Quote
  #7   Spotlight this post!  
Unread 05-01-2017, 22:04
nardavin nardavin is offline
Registered User
FRC #2403 (Plasma Robotics)
Team Role: Programmer
 
Join Date: Mar 2014
Rookie Year: 2014
Location: Gilbert, Arizona
Posts: 20
nardavin is on a distinguished road
Re: GRIP code gen on RPI3

Quote:
Originally Posted by SamCarlberg View Post
Which command did you run?
Code:
python3 -m wheel install opencv_python_rpi3-3.1.0+39f5a48-cp34-cp34m-linux_armv7l.whl
__________________
Team 2403: Plasma Robotics

Member 2014-2017, Head Programmer 2015-2016, Leadership Team 2016-2017, Co-President 2017




Last edited by nardavin : 05-01-2017 at 22:05. Reason: Put command in code tags
Reply With Quote
  #8   Spotlight this post!  
Unread Today, 01:48
cad321 cad321 is offline
Jack of all trades, Master of none
AKA: Brian Wagg
FRC #2386 (Trojans)
Team Role: Alumni
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Burlington, Ontario
Posts: 319
cad321 is just really nicecad321 is just really nicecad321 is just really nicecad321 is just really nice
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
I receive the following error:

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
I am running Jessie Lite on an RPI3. The only things I have done on the Pi (in said order) are:

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
Any suggestions?
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi