Hi,
On the nano, I removed opencv-3.2.0 using:
sudo sudo apt-get purge *libopencv*
I confirmed removal with find and:
import cv2
Traceback (most recent call last):
File “”, line 1, in
ModuleNotFoundError: No module named ‘cv2’
Then ran the script posted by AastaLLL (#2):
install_opencv4.0.0_Nano.sh
After running install_opencv4.0.0_Nano.sh
there was confirmation of install:
…
Setting up libopencv-videostab3.2:arm64 (3.2.0+dfsg-4ubuntu0.1) …
Setting up libopencv-contrib3.2:arm64 (3.2.0+dfsg-4ubuntu0.1) …
Setting up python3-opencv (3.2.0+dfsg-4ubuntu0.1) …
Setting up python-opencv (3.2.0+dfsg-4ubuntu0.1) …
Processing triggers for libc-bin (2.27-3ubuntu1) …
** Install opencv-4.0.0 successfully
** Bye :)
nvidia@nvidia-desktop:~$ python3
Python 3.6.8 (default, Jan 14 2019, 11:02:34)
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type “help”, “copyright”, “credits” or “license” for more information.
import cv2
cv2.version
‘3.2.0’
It appears opencv-3.2.0 was installed, not opencv-4.0.0:
AastaLLL (#4) suggests:
“If the default opencv is not removed, you will need to update your Makefile to the correct header/lib.”
Apologies in advance if pedestrian for this forum:
What Makefile is AastaLLL referring to?
How do I find the correct header/lib and change Makefile accordingly?