It seems to me it would be very handy to have a data method giving either an exception, or the location (using File::Spec?) of the given thing under some library "data" location (either found/inferred from system package, or located in the built directory). It seems they are part of the normal distro this thing builds from.
It seems to me it would be very handy to have a
data
method giving either an exception, or the location (using File::Spec?) of the given thing under some library "data" location (either found/inferred from system package, or located in the built directory). It seems they are part of the normal distro this thing builds from.I'm also envisioning specialised ones such as
data_wechat_qrcode
that would return all 4 files used here (see C++ section): https://learnopencv.com/wechat-qr-code-scanner-in-opencv/ for passing to the constructor, ordata_haarcascade
for https://buzzneers.com/data-science/smile-detection-using-opencv-i/For Debian/Ubuntu, it looks like those files live in
/usr/share/opencv
: https://packages.ubuntu.com/bionic/all/opencv-data/filelist