Load custom ArUco dictionary
Hi,
I'm currently trying to implement an ArUco based tracker using a custom dictionary (3x3 is sadly not provided). So I save my dictionary as a .yml file and load it in my tracking tool.
However, the cv::aruco::detectMarkers
function requires a cv::Ptr<cv::aruco::Dictionary>
as input but I can only create a cv::aruco::Dictionary
object: test_dict = cv::aruco::Dictionary(bits, marker_size, correction_bits);
Some code:
test_dict = cv::aruco::Dictionary(bits, bits, marker_size, correction_bit);
cv::aruco::detectMarkers(cvimage, test_dict
, corners, ids);
In the second line, I need a pointer: cv::Ptr<cv::aruco::Dictionary>
, but obviously, &test_dict does not work. so my question is how to get such a pointer?
PS: I'm stuck to OpenCV 3.3.1 :)
Best Julz