{"action":"created","issue":{"url":"https://api.github.com/repos/openalpr/openalpr/issues/195","repository_url":"https://api.github.com/repos/openalpr/openalpr","labels_url":"https://api.github.com/repos/openalpr/openalpr/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/openalpr/openalpr/issues/195/comments","events_url":"https://api.github.com/repos/openalpr/openalpr/issues/195/events","html_url":"https://github.com/openalpr/openalpr/issues/195","id":104902704,"number":195,"title":"Python recognizeArray doesn't recognise anything","user":{"login":"bosmart","id":5089507,"avatar_url":"https://avatars.githubusercontent.com/u/5089507?v=3","gravatar_id":"","url":"https://api.github.com/users/bosmart","html_url":"https://github.com/bosmart","followers_url":"https://api.github.com/users/bosmart/followers","following_url":"https://api.github.com/users/bosmart/following{/other_user}","gists_url":"https://api.github.com/users/bosmart/gists{/gist_id}","starred_url":"https://api.github.com/users/bosmart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bosmart/subscriptions","organizations_url":"https://api.github.com/users/bosmart/orgs","repos_url":"https://api.github.com/users/bosmart/repos","events_url":"https://api.github.com/users/bosmart/events{/privacy}","received_events_url":"https://api.github.com/users/bosmart/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-04T14:38:03Z","updated_at":"2016-03-01T19:07:43Z","closed_at":"2015-09-04T17:52:23Z","body":"There seems to be an issue with the recognizeArray function (openalprpy.cpp) as it is unable to recognise plates in a frame grabbed from a video file using OpenCV (when run from command line, alpr recognises the licence plate without any issues). Here's a code snippet:\r\n\r\nalpr = Alpr(\"eu\", \"/etc/openalpr/openalpr.conf\", \"/usr/share/openalpr/runtime_data\")\r\nvideo = cv2.VideoCapture(fname)\r\nret, frame = video.read()\r\nret, frame = cv2.imencode(\"*.bmp\", frame)\r\nresults = alpr.recognize_array(bytes(frame)) # results has 0 entries\r\n"},"comment":{"url":"https://api.github.com/repos/openalpr/openalpr/issues/comments/190855246","html_url":"https://github.com/openalpr/openalpr/issues/195#issuecomment-190855246","issue_url":"https://api.github.com/repos/openalpr/openalpr/issues/195","id":190855246,"user":{"login":"lucascdsilva","id":4581253,"avatar_url":"https://avatars.githubusercontent.com/u/4581253?v=3","gravatar_id":"","url":"https://api.github.com/users/lucascdsilva","html_url":"https://github.com/lucascdsilva","followers_url":"https://api.github.com/users/lucascdsilva/followers","following_url":"https://api.github.com/users/lucascdsilva/following{/other_user}","gists_url":"https://api.github.com/users/lucascdsilva/gists{/gist_id}","starred_url":"https://api.github.com/users/lucascdsilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucascdsilva/subscriptions","organizations_url":"https://api.github.com/users/lucascdsilva/orgs","repos_url":"https://api.github.com/users/lucascdsilva/repos","events_url":"https://api.github.com/users/lucascdsilva/events{/privacy}","received_events_url":"https://api.github.com/users/lucascdsilva/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T19:07:43Z","updated_at":"2016-03-01T19:07:43Z","body":"@bosmart  thank you very much!!you made me very happy"}}