Ask Your Question
0

How can use NEON with opencv 3.1 and arm-linux board

asked 2018-10-15 00:58:10 -0600

kishan patel gravatar image

updated 2018-10-15 00:58:43 -0600

Hello, I have using opencv 3.1 application on AM5628 EVM board. And it is very slow. So, can i use NEON flag for that and how? And how can check that NEON has been enabled or not? Please. Regads, Kishan Patel

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-10-15 02:13:50 -0600

berak gravatar image

updated 2018-10-15 03:35:23 -0600

you can try to use:

cmake -DENABLE_NEON=ON

(when building the opencv libs)

also, opencv_version -hw will show you, which optimization was built in.

in any case, you should use a more recent opencv version. (we're at 3.4.3, now) . 3.1 might not even support NEON optimization.

edit flag offensive delete link more

Comments

I have used cmake -DENABLE_NEON=ON on system and then test that it has enabled or not. Please check below log: kishan@kishan-ThinkPad-T430s:~$ opencv_version -hw

4.0.0-pre
OpenCV's HW features list:
    ID=  1 (MMX) -> ON
    ID=  2 (SSE) -> ON
    ID=  3 (SSE2) -> ON
    ID=  4 (SSE3) -> ON
    ID=  5 (SSSE3) -> ON
    ID=  6 (SSE4.1) -> ON
    ID=  7 (SSE4.2) -> ON
    ID=  8 (POPCNT) -> ON
    ID=  9 (FP16) -> ON
    ID= 10 (AVX) -> ON
    ID= 11 (AVX2) -> N/A
    ID= 12 (FMA3) -> N/A
    ID= 13 (AVX512F) -> N/A
    ID= 14 (AVX512BW) -> N/A
    ID= 15 (AVX512CD) -> N/A
    ID= 16 (AVX512DQ) -> N/A
    ID= 17 (AVX512ER) -> N/A
    ID= 18 (AVX512IFMA) -> N/A
    ID= 19 (AVX512PF) -> N/A
    ID= 20 (AV
kishan patel gravatar imagekishan patel ( 2018-10-15 03:36:14 -0600 )edit

ID=100 (NEON) -> N/A ID=200 (VSX) -> N/A ID=256 (AVX512-SKX) -> N/A Total available: 10

kishan patel gravatar imagekishan patel ( 2018-10-15 03:36:37 -0600 )edit

hmm, that is the version of your host machine ? (which is probably x86/x64)

you have to run/build the version tool for your arm board, and run it there !

berak gravatar imageberak ( 2018-10-15 03:41:28 -0600 )edit

Okay. Is it available on 3.1 version?

kishan patel gravatar imagekishan patel ( 2018-10-15 03:47:41 -0600 )edit

idk, sorry, but i rather guess, 3.1 had no neon support at all.

berak gravatar imageberak ( 2018-10-15 03:51:46 -0600 )edit

Okay, so which version i have to use?

kishan patel gravatar imagekishan patel ( 2018-10-15 03:53:04 -0600 )edit

Opencv 3.2.0 support NEON but i can't compile the library.. she provide lot of errors and i do not know why, if you try with another version could you give a feed back here of how to do that ?

Simontraww gravatar imageSimontraww ( 2018-11-23 01:59:28 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2018-10-15 00:58:10 -0600

Seen: 4,097 times

Last updated: Oct 15 '18