Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

samples::findFile not finding file

I have downloaded and compiled openCV from source. I am trying to add some files to the test environment so I can use them in my tests without using the full path.

After downloading the opencv_extra samples and exporting the OPENCV_TEST_DATA_PATH to opencv_extra/testdata. However when I try to use the findFile function or findDataFile function for my tests I get an error:

OpenCV tests: Can't find required data file: dnn_models/model.onnx in function 'findData'

I copied the data files inside opencv_extra/testdata/dnn_models/

What should I do?