{"action":"closed","issue":{"url":"https://api.github.com/repos/richdyang/opencv3-android-sdk-with-contrib/issues/5","repository_url":"https://api.github.com/repos/richdyang/opencv3-android-sdk-with-contrib","labels_url":"https://api.github.com/repos/richdyang/opencv3-android-sdk-with-contrib/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/richdyang/opencv3-android-sdk-with-contrib/issues/5/comments","events_url":"https://api.github.com/repos/richdyang/opencv3-android-sdk-with-contrib/issues/5/events","html_url":"https://github.com/richdyang/opencv3-android-sdk-with-contrib/issues/5","id":300929052,"number":5,"title":"Assertion failed in Aruco.detectMarkers","user":{"login":"johnhaire89","id":13926753,"avatar_url":"https://avatars0.githubusercontent.com/u/13926753?v=4","gravatar_id":"","url":"https://api.github.com/users/johnhaire89","html_url":"https://github.com/johnhaire89","followers_url":"https://api.github.com/users/johnhaire89/followers","following_url":"https://api.github.com/users/johnhaire89/following{/other_user}","gists_url":"https://api.github.com/users/johnhaire89/gists{/gist_id}","starred_url":"https://api.github.com/users/johnhaire89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnhaire89/subscriptions","organizations_url":"https://api.github.com/users/johnhaire89/orgs","repos_url":"https://api.github.com/users/johnhaire89/repos","events_url":"https://api.github.com/users/johnhaire89/events{/privacy}","received_events_url":"https://api.github.com/users/johnhaire89/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-28T08:15:37Z","updated_at":"2018-02-28T23:23:25Z","closed_at":"2018-02-28T23:23:25Z","author_association":"NONE","body":"I'm trying to use the Aruco module but this version of contrib seems to have a bug that crashes the app as soon as I call  Aruco.detectMarker.\r\n\r\n```02-28 18:52:39.732 28341-28543/com.jh.fiducial_marker_2 E/cv::error(): OpenCV(3.4.0-dev) Error: Assertion failed (_in.getMat().channels() == 1 || _in.getMat().channels() == 3) in void cv::aruco::_convertToGrey(cv::InputArray, cv::OutputArray), file /Users/Chao/opencv_contrib/modules/aruco/src/aruco.cpp, line 92\r\n02-28 18:52:39.783 28341-28543/com.jh.fiducial_marker_2 E/org.opencv.aruco: aruco::detectMarkers_11() caught cv::Exception: OpenCV(3.4.0-dev) /Users/Chao/opencv_contrib/modules/aruco/src/aruco.cpp:92: error: (-215) _in.getMat().channels() == 1 || _in.getMat().channels() == 3 in function void cv::aruco::_convertToGrey(cv::InputArray, cv::OutputArray)\r\n02-28 18:52:39.784 28341-28543/com.jh.fiducial_marker_2 E/AndroidRuntime: FATAL EXCEPTION: Thread-7\r\n                                                                                 Process: com.jh.fiducial_marker_2, PID: 28341\r\n                                                                                 CvException [org.opencv.core.CvException: cv::Exception: OpenCV(3.4.0-dev) /Users/Chao/opencv_contrib/modules/aruco/src/aruco.cpp:92: error: (-215) _in.getMat().channels() == 1 || _in.getMat().channels() == 3 in function void cv::aruco::_convertToGrey(cv::InputArray, cv::OutputArray)\r\n                                                                                 ]\r\n                                                                                     at org.opencv.aruco.Aruco.detectMarkers_1(Native Method)```\r\n\r\nRelevant issue reports in the opencv_contrib repo\r\nhttps://github.com/opencv/opencv_contrib/issues/595\r\nhttps://github.com/opentrack/opentrack/issues/375"}}
{"actor":{"display_login":"johnhaire89"}}