PYNQ-ComputerVision
PYNQ-ComputerVision copied to clipboard
Ultra96 v2 pynq problem installing ComputerVision repo
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!
Hope someone can teach me!
Thanks a lot a lot a lot.
Tim
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"
But i meet a problem running OpenCV Overlay: Filter2D and Dilate.
Did you meet this problem too?
Thank a lot! Awesome!
Tim
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.
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
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 ;)
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
Thank a lot bro! Tim
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