Ask Your Question
3

Can not find data files for test programs

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

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
4

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

Vladislav Vinogradov gravatar image

updated 2017-05-02 05:05:18 -0600

LBerger gravatar image

Clone git://github.com/opencv/opencv_extra.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

Comments

That did the trick, Thanks.

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

Question Tools

2 followers

Stats

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

Seen: 4,830 times

Last updated: May 02 '17