Filesystem.cpp:580: error: (-213:The function/feature is not implemented) in function 'exists'

i think it is this problem and you have to rebuild (from cmake) using

OPENCV_HAVE_FILESYSTEM_SUPPORT=1