Ask Your Question

Can not find data files for test programs

asked 2012-11-25 21:54:09 -0500

opencv_beginner_01 gravatar image

I just installed and built and opencv for linux and am trying to run some bundled in test programs e.g. ./opencv_perf_objdetect, I am getting errors shown below. Where can I get data files needed to run inbuilt test and sample programs?

opencv/opencv-2.4.3/OpenCV-2.4.3/svn/opencv/modules/ts/s rc/ts_perf.cpp:1128: Failure Failed Requested file "./cv/cascadeandhog/cascades/lbpcascade_frontalface.xml" does n ot exist. params = ("cv/shared/lena.png", 24) termination reason: aborted by the performance testing framework

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2012-11-26 00:04:42 -0500

Vladislav Vinogradov gravatar image

updated 2017-05-02 05:05:18 -0500

LBerger gravatar image

Clone git:// repository and create enviroment variable OPENCV_TEST_DATA_PATH with path to <opencv_extra>/testdata, for example:

export OPENCV_TEST_DATA_PATH=/home/user/opencv_extra/testdata/
edit flag offensive delete link more


That did the trick, Thanks.

opencv_beginner_01 gravatar imageopencv_beginner_01 ( 2012-11-27 03:42:36 -0500 )edit

Question Tools



Asked: 2012-11-25 21:54:09 -0500

Seen: 4,011 times

Last updated: May 02 '17