samples::findFile not finding file

asked 2019-06-12 08:57:15 -0500

diegovd gravatar image

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?

edit retag flag offensive close merge delete


You should run and download models

sturkmen gravatar imagesturkmen ( 2019-06-12 12:58:09 -0500 )edit

I am trying to test my own model, that I have locally. Does that script do something else besides downloading the models?

diegovd gravatar imagediegovd ( 2019-06-12 13:01:20 -0500 )edit

i did not understand your question well.forget my comment.

sturkmen gravatar imagesturkmen ( 2019-06-12 20:19:19 -0500 )edit