{"action":"opened","issue":{"url":"https://api.github.com/repos/mshabunin/test/issues/636","labels_url":"https://api.github.com/repos/mshabunin/test/issues/636/labels{/name}","comments_url":"https://api.github.com/repos/mshabunin/test/issues/636/comments","events_url":"https://api.github.com/repos/mshabunin/test/issues/636/events","html_url":"https://github.com/mshabunin/test/issues/636","id":91258597,"number":636,"title":"Algorithm::load() not available for script wrappers","user":{"login":"mshabunin","id":3304494,"avatar_url":"https://avatars.githubusercontent.com/u/3304494?v=3","gravatar_id":"","url":"https://api.github.com/users/mshabunin","html_url":"https://github.com/mshabunin","followers_url":"https://api.github.com/users/mshabunin/followers","following_url":"https://api.github.com/users/mshabunin/following{/other_user}","gists_url":"https://api.github.com/users/mshabunin/gists{/gist_id}","starred_url":"https://api.github.com/users/mshabunin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshabunin/subscriptions","organizations_url":"https://api.github.com/users/mshabunin/orgs","repos_url":"https://api.github.com/users/mshabunin/repos","events_url":"https://api.github.com/users/mshabunin/events{/privacy}","received_events_url":"https://api.github.com/users/mshabunin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-26T13:57:38Z","updated_at":"2015-06-26T13:57:38Z","closed_at":null,"body":"Converted from http://code.opencv.org/issues/4279\r\n```\n|| by be rak on 2015-04-14 18:32:00\n|| Status: New\n|| Priority: Normal\n|| Affected: branch 'master' (3.0-dev)\n|| Target: 3.0\n|| Category: ml\n\nAlgorithm::load() not available for script wrappers\n===========\nwhile trying to fix the ml-related python samples, i found  \nthat it's impossible to load a serialized state from python atm.\n\nadding a respective method like:\n\n```  \n CV_WRAP static Ptr<SVM> load(const String &fn) {  \n return Algorithm::load<SVM>(fn);  \n }  \n```\n\nto each of the ml classes would fix it, but hopefully there might be a\nbetter way (without changing the interface)\n\n\nHistory\n=======\n|| by Vadim Pisarevsky on 2015-04-27 15:12:00\n-   Category set to ml\n\n\n|| by Maksim Shabunin on 2015-04-29 13:21:00\n-   Target version set to 3.0\n```"}}