Ask Your Question

How to use Floating Point Support in opencv

asked 2015-07-22 11:04:09 -0500

franken gravatar image

updated 2015-07-25 05:42:48 -0500

Hi all,

i'm using raspberry pi 2 with raspbian , i'm working on face and eyes detection using opencv and c++ , i want to improve the performance and reduce time detection in the program and i was wondering if i can use the floating point unit FPU ?? and how to use it in OPENCV .

Any suggestions will be appreciated thanks. :)

NB : the code :

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-07-24 02:58:50 -0500

mshabunin gravatar image

Try to build OpenCV with NEON support:

cmake  -DCMAKE_TOOLCHAIN_FILE=../opencv/platforms/linux/arm-gnueabi.toolchain.cmake -DENABLE_VFPV3=YES -DENABLE_NEON=YES  ../opencv
edit flag offensive delete link more


i have try to add -march=armv7-a -mfpu=vfp -mfloat-abi=hard in compilation but hasn't improve anything , i will try to re-build opencv with NEON support and let you know thanks :)

franken gravatar imagefranken ( 2015-07-25 05:46:49 -0500 )edit
Login/Signup to Answer

Question Tools



Asked: 2015-07-22 11:04:09 -0500

Seen: 270 times

Last updated: Jul 25 '15