I can see that opencv comes pre installed with jetson nano but the installed version is 3.3. What if I want to upgrade it to 3.4 or may be the latest version 4.0.
Normally on my laptop if I do pip3 install opencv-python, it installs the latest version but thats not the case on jetson nano.
For curiosity sake I am trying to build master from source right now. So far, so good. It’s gonna take a while and there were a lot of dependencies to track dow, but it’s building:
It made it to 15% and then I cancelled it because I realised I forgot to update the install prefix. It’s going faster than I thought. This thing has more horsepower than a Pi for sure. It’s back up to 3% and chugging along.
The barrel jack for sure. I couldn’t find a micro-usb that would power it and survive any stress testing. It would boot, install stuff, update, etc, but using the GPU would be too much.
Do you use face recognition with openCV?
On my Raspberry Pi3 both works fine, but with the Nano i have trouble to install face recognition with its dependencies dlib in particular.
I haven’t tried face recognition with opencv. Is some module failing to build? “face” is scheduled to be built for me but the build hasn’t gotten to that module yet. Right now it’s on modules/cudev.
So, I’ve written a small script to (hopefully) build opencv 4.1.0 on a barebones system. It should probably be tested on a newly flashed image (both so as not to risk your data, and to ensure it works from scratch). Volunteers are very much welcome. I will eventually test it but can’t now as my Nano is currently compiling.
edit: script is now located on github so you can clone it.
Did you get it working on the nano. Which OpenCV version is installed now.? Is this the same script you followed for installation. How much time it took to complete.
On raspberry pi, face_recognition will work fine but overall performance will be low as it do not have good cpu/gpu. On jetson nano, I installed the face_recognition and dlib, but the library was only detecting faces and not recognizing them because of the issues with dlib library.
If you debug the code, you will see that dlib returns nan nan values of matrix which in actual should be some values of the enconding. This is why only detection works but not recognizing. Follow this thread:
99% complete. I haven’t run tests yet or anything.
The version I built from is master, however the script is pinned to 4.1.0. It took about 5-6 hours to complete**. If it complains about any missing dependencies or the script fails to execute to completion, please post the results here and I’ll modify it. Tomorrow I will do my own testings on a freshly flashed micro-sd.
** this assumes 99% is really 99% please keep tuned in to this thread
Edit: “make install” took nearly as long as the make, so installing a new version of opencv from source is probably an overnight kind of thing on the device itself.
and at 99% it got stuck and jetson nano also got freezed for sometime and wasnt responding, probably because I was using microUSB. Is this the same for you.?
I gave up after half an hour of trying to power the thing over micro-usb and ordered a 5v 4a barrel type power supply off Amazon. YMMV, the thing was 7$, but so far so good, (knock on laminated particleboard!)
[100%] Built target opencv_version
mdegans@jetson-nano-64gb-initial:/tmp/build_opencv/opencv/build$
woo hoo
Now doing “make install” and making sure that works, I’m personally doing a user install in ~/.local while the script installs opencv systemwide. It shouldn’t take much more time but I’m gonna check back on it tomorrow.