Skip to content

"data" methods? #5

@mohawk2

Description

@mohawk2

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions