EntropyOrg / perl-Alien-OpenCV

0 stars 0 forks source link

"data" methods? #5

Open mohawk2 opened 1 year ago

mohawk2 commented 1 year ago

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, or data_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

zmughal commented 1 year ago

Sounds like a good idea to me! (And I got the message about adding #pdl IRC notifications to this repo too)