Skip to content

CascadeClassifier fails to load from file with "Failed to lookup symbol 'cv_CascadeClassifier_create'" #360

@nombrekeff

Description

@nombrekeff

Describe the bug
I'm trying the CascadeClassifier, I'm trying to load the haar from a file downloaded from opencv repo: https://github.com/opencv/opencv/blob/4.x/data/haarcascades/haarcascade_frontalface_default.xml

To Reproduce
Steps to reproduce the behavior:

Call CascadeClassifier.empty or CascadeClassifier.fromFile:

var haar = CascadeClassifier.empty();

// Or 
var file = await getAssetFile('assets/haarcascade_frontalface_default.xml', 'haarcascade_frontalface_default.xml');
var haar = CascadeClassifier.fromFile(file.path);

Gives an error:

Unhandled Exception: Invalid argument(s): Failed to lookup symbol 'cv_CascadeClassifier_create': undefined symbol: cv_CascadeClassifier_create

Expected behavior
I would expect this to work. If the interface is in place I would assume it works.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions