Xilinx / PYNQ-ComputerVision

Computer Vision Overlays on Pynq
Other
173 stars 52 forks source link

Ultra96 v2 pynq problem installing ComputerVision repo #30

Open tim7107 opened 4 years ago

tim7107 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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

proelf98 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

Thank a lot bro! Tim

StefQM commented 4 years ago

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