OPENCV Install

Post Reply
GrokWhy
Posts: 5
Joined: Fri May 10, 2019 2:24 am
languages_spoken: english
ODROIDs: N2, UX4, C2
Has thanked: 1 time
Been thanked: 0
Contact:

OPENCV Install

Unread post by GrokWhy » Fri May 10, 2019 2:35 am

Where can I find information about getting OPENCV Python installed on the N2?

I've found generic info about Ubuntu, but nothing specific on ARM64 or the N2.

I found this build script https://www.learnopencv.com/install-ope ... ntu-18-04/ but it's locking up N2 during the build.

Thanks,
Russ

User avatar
odroid
Site Admin
Posts: 32553
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 189 times
Been thanked: 353 times
Contact:

Re: OPENCV Install

Unread post by odroid » Fri May 10, 2019 12:02 pm

I think TBB and OPENGL options should be disabled on ARM platforms.
This guide seems to be more feasible.
https://github.com/cesco345/OpenCV-With ... lation.txt

@mad_ady also tried the OpenCV on N2.
viewtopic.php?t=34503#p252031

GrokWhy
Posts: 5
Joined: Fri May 10, 2019 2:24 am
languages_spoken: english
ODROIDs: N2, UX4, C2
Has thanked: 1 time
Been thanked: 0
Contact:

Re: OPENCV Install

Unread post by GrokWhy » Thu May 16, 2019 4:52 am

Got this working - at least OpenCV imports and reports the version number in python.

One problem, a 32G SD card is needed, 16G ran out of space. Potentially software like LibreOffice could be removed to free up space. I have OpenCV installed on a cleaned Raspberry PI with 16G.

I installed using pyimagesearch.com's instructions https://www.pyimagesearch.com/2018/08/1 ... on-ubuntu/

The only minor issue, he references Python 3.5 in some of his paths which needs to be changed depending on the version of Python installed.

Now on to more serious testing.

Russ

User avatar
odroid
Site Admin
Posts: 32553
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 189 times
Been thanked: 353 times
Contact:

Re: OPENCV Install

Unread post by odroid » Thu May 16, 2019 10:10 am

Glad to hear that.
Which version of OpenCV did you install?

PS. You might save around 600MB if you remove LibreOffice related packages.
I think there are much more pre-installed packages than Raspbian probably.

Refer this tip to improve the desktop GUI performance as well as your OpenCV application.
You might need to manually assign your application software to one of the big cores if your app is not using multi-thread technique.
viewtopic.php?f=177&t=34963

dbod
Posts: 73
Joined: Fri Apr 26, 2019 10:03 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: OPENCV Install

Unread post by dbod » Wed May 29, 2019 2:06 am

Today I installed OpenCV straight from a clone of it's git repo. Worked without any problems. It is much easier to do an apt based install (sudo apt-get install python-opencv), and you need way less memory as it naturally blows up during the build, but it is an older version. That version may be sufficient for your purposes though.

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 11 guests