Skip to content

Algorithm::load() not available for script wrappers #4969

@opencv-pushbot

Description

@opencv-pushbot

Transferred from http://code.opencv.org/issues/4279

|| be rak on 2015-04-14 14:32
|| Priority: Normal
|| Affected: branch 'master' (3.0-dev)
|| Category: ml
|| Tracker: Bug
|| Difficulty: 
|| PR: 
|| Platform: Any / Any

Algorithm::load() not available for script wrappers

while trying to fix the ml-related python samples, i found
that it's impossible to load a serialized state from python atm.

adding a respective method like:

CV_WRAP static Ptr<SVM> load(const String &fn)
{
    return Algorithm::load<SVM>(fn);
}

to each of the ml classes would fix it, but hopefully there might be a better way (without changing the interface)

History

Vadim Pisarevsky on 2015-04-27 11:12
-   Category set to ml
Maksim Shabunin on 2015-04-29 09:21
-   Target version set to 3.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions