{"action":"created","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/5885","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/5885/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/5885/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/5885/events","html_url":"https://github.com/Itseez/opencv/issues/5885","id":123935076,"number":5885,"title":"FaceRecognizer::predict(...) could provide more than one match","user":{"login":"ptheofan","id":880939,"avatar_url":"https://avatars.githubusercontent.com/u/880939?v=3","gravatar_id":"","url":"https://api.github.com/users/ptheofan","html_url":"https://github.com/ptheofan","followers_url":"https://api.github.com/users/ptheofan/followers","following_url":"https://api.github.com/users/ptheofan/following{/other_user}","gists_url":"https://api.github.com/users/ptheofan/gists{/gist_id}","starred_url":"https://api.github.com/users/ptheofan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ptheofan/subscriptions","organizations_url":"https://api.github.com/users/ptheofan/orgs","repos_url":"https://api.github.com/users/ptheofan/repos","events_url":"https://api.github.com/users/ptheofan/events{/privacy}","received_events_url":"https://api.github.com/users/ptheofan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Itseez/opencv/labels/invalid","name":"invalid","color":"000000"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-26T15:33:42Z","updated_at":"2015-12-28T08:45:00Z","closed_at":"2015-12-28T08:45:00Z","body":"FaceRecognizer::predict at the moment returns a result for a single best match. It would be really nice if we could provide a maxCount of possible matches and get a list of labels and scores (currently returns only 1). \r\n\r\nExtending the existing classes is always an option but given that a lot of people use java or python bindings and with the class internals not being exposed there the only option is to extend the class in cpp, compile the bindings, etc. so it would make sense to actually have it by default?\r\n\r\nAccording to http://answers.opencv.org/question/3494/adding-new-method-in-facerecognizer/ this is something quite a few people have been searching for. "},"comment":{"url":"https://api.github.com/repos/Itseez/opencv/issues/comments/167513972","html_url":"https://github.com/Itseez/opencv/issues/5885#issuecomment-167513972","issue_url":"https://api.github.com/repos/Itseez/opencv/issues/5885","id":167513972,"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},"created_at":"2015-12-28T08:45:00Z","updated_at":"2015-12-28T08:45:00Z","body":"The _face_ module is part of opencv_contrib repository and it has own issue tracker.\r\n\r\nBTW, take a look at the related PR: https://github.com/Itseez/opencv_contrib/pull/465, feel free to comment."}}