Skip to content
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

Ultra96 v2 pynq problem installing ComputerVision repo #30

Open
tim7107 opened this issue Jun 8, 2020 · 8 comments
Open

Ultra96 v2 pynq problem installing ComputerVision repo #30

tim7107 opened this issue Jun 8, 2020 · 8 comments

Comments

@tim7107
Copy link

tim7107 commented Jun 8, 2020

Hi, i just start using ultra96 v2 board for jsut a short time.
The sdcard image i used is ultra96 v2 v2.4.
I had setted up pynq successfully and can connect to jupyter.
I want to run some code using opencv.
But when i try this command " sudo pip3 install --upgrade git+https://github.com/Xilinx/PYNQ-ComputerVision.git " on terminal.
I meet this problem and do not know where the problem!
image
Hope someone can teach me!
Thanks a lot a lot a lot.
Tim

@proelf98
Copy link

proelf98 commented Jun 8, 2020

Hey I've run into the same kind of problem today. I am myself a beginner, but what worked for me is just remove the "--upgrade". The "upgrade" flag tries to upgrade all dependent packages to the latest available version. If I understood the Error Message correctly, it isn't possible to cythonize pandas with the cython version of the board. I also tried to upgrade cython to the version "0.23.13" but it threw out another error message related to NumPy, which I didn't understand.

So I just tried to install PYNQ-ComputerVision without the upgrade and it worked:
"sudo pip3 install git+https://github.com/Xilinx/PYNQ-ComputerVision.git"

@tim7107
Copy link
Author

tim7107 commented Jun 9, 2020

But i meet a problem running OpenCV Overlay: Filter2D and Dilate.
image
Did you meet this problem too?
Thank a lot! Awesome!
Tim

@proelf98
Copy link

proelf98 commented Jun 9, 2020

Oh yeah I also encountered this problem yesterday. I thought it was related with not using "--upgrade" flag during installation, so I searched a little further and found out that, if you use "pip3 install --upgrade Cython" and run after that "sudo pip3 install --upgrade git+https://github.com/Xilinx/PYNQ-ComputerVision.git" it works too (takes quite some time) and you can install the repository, however I got still the same error message. So I asked on the PYNQ Community for help. I am unfortunately also out of my knowledge why this happend.

@tim7107
Copy link
Author

tim7107 commented Jun 10, 2020

This problem disappeared after i change my sdcard image to ultra96 v2 v2.4.
I was using ultra96 v2 v2.5 at first. Maybe you can give it a try!
Then,i meet another problem haha. But fortunately it does not affect the main code.
Thanks for your helping. Hope you have a nice day!
Tim

@proelf98
Copy link

Haha awesome that is nice! Yes I also used ultra96 v2 v2.5.
Thank you for informing me, I'll try. And you too have a nice day ;)

@proelf98
Copy link

Hey @tim7107 , just want to notify you that my error got fixed and was able to use the repository. The pynq community helped me. You can read the solution how to use the PYNQ-ComputerVision with PYNQ Version 2.5.

https://discuss.pynq.io/t/importerror-libopencv-shape-so-3-2-cannot-open-shared-object-file-no-such-file-or-directory/1337

@tim7107
Copy link
Author

tim7107 commented Jun 23, 2020

Thank a lot bro!
Tim

@StefQM
Copy link

StefQM commented Sep 22, 2020

I just wanted to confirm that you can get the PYNQ ComputerVision working on an Ultra96V2, through the following steps:

  • Ultr96V2 board with PYNQ2.5, and connect to Wifi (easy way: via the notebook on Wifi in the common folder)
  • pip3 install --upgrade Cython =>Not sure this step is actually required (I didn't try without)
  • sudo pip3 install git+https://github.com/Xilinx/PYNQ-ComputerVision.git
    NOT: sudo pip3 install --upgrade git+https://github.com/Xilinx/PYNQ-ComputerVision.git => This throws the Cython error (even after the Cython upgrade in the previous step)
  • As an example, the complete notebook "2__Overlays-filter2d_and_dilate" should be functional
    Important note: In the section "Setup & Configure USB camera", make sure width & height are set to your camera resolution, else things will crash in the hardware part

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants