Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Aruco java getting marker IDs

Hi all, first of all thanks for this amazing library. I´m working on my final degree project, using a Lego Mindstorm EV3 that uses my Android phone camera as its eyes. I´ve implemented an android app wich uses the Aruco module (openCVLibrary 3.4.0 dev), everything works perfectly, the app detects and draws all the Aruco markers, but I´m trying to get the IDs from the IDs Mat, how can I get those IDs stored in the Mat?

public void drawDetectedMarkers(Mat mRgba) {
    Aruco.drawDetectedMarkers(mRgba, corners, arucoIDs, new Scalar(0, 255, 0));
    Imgproc.putText(mRgba, "Aruco:"+ **arucoIDs.get(1,1)**, new Point(30, 30), 3, 1, new Scalar(255, 0, 0, 255), 1);   
}

I´ve tried using arucoIDs.get() function, but it doesn´t give me the marker ID that I need, depending on the ID, the robot will move to the left or right side. Thanks so much and regards

Aruco java getting marker IDs

Hi all, first of all thanks for this amazing library. I´m working on my final degree project, using a Lego Mindstorm EV3 that uses my Android phone camera as its eyes. I´ve implemented an android app wich uses the Aruco module (openCVLibrary 3.4.0 dev), everything works perfectly, the app detects and draws all the Aruco markers, but I´m trying to get the IDs from the IDs Mat, how can I get those IDs stored in the Mat?

public void drawDetectedMarkers(Mat mRgba) {
    Aruco.drawDetectedMarkers(mRgba, corners, arucoIDs, new Scalar(0, 255, 0));
    Imgproc.putText(mRgba, "Aruco:"+ **arucoIDs.get(1,1)**, new Point(30, 30), 3, 1, new Scalar(255, 0, 0, 255), 1);   
}

I´ve tried using arucoIDs.get() function, but it doesn´t give me the marker ID that I need, depending on the ID, the robot will move to the left or right side. Thanks so much and regards

Aruco java getting java, trying to get marker IDs

Hi all, first of all thanks for this amazing library. I´m working on my final degree project, using a Lego Mindstorm EV3 that uses my Android phone camera as its eyes. I´ve implemented an android app wich uses the Aruco module (openCVLibrary 3.4.0 dev), everything works perfectly, the app detects and draws all the Aruco markers, but I´m trying to get the IDs from the IDs Mat, how can I get those IDs stored in the Mat?

public void drawDetectedMarkers(Mat mRgba) {
    Aruco.drawDetectedMarkers(mRgba, corners, arucoIDs, new Scalar(0, 255, 0));
    Imgproc.putText(mRgba, "Aruco:"+ **arucoIDs.get(1,1)**, new Point(30, 30), 3, 1, new Scalar(255, 0, 0, 255), 1);   
}

I´ve tried using arucoIDs.get() function, but it doesn´t give me the marker ID that I need, depending on the ID, the robot will move to the left or right side. Thanks so much and regards

SOLVED Aruco java, trying to get marker IDs

Hi all, first of all thanks for this amazing library. I´m working on my final degree project, using a Lego Mindstorm EV3 that uses my Android phone camera as its eyes. I´ve implemented an android app wich uses the Aruco module (openCVLibrary 3.4.0 dev), everything works perfectly, the app detects and draws all the Aruco markers, but I´m trying to get the IDs from the IDs Mat, how can I get those IDs stored in the Mat?

public void drawDetectedMarkers(Mat mRgba) {
    Aruco.drawDetectedMarkers(mRgba, corners, arucoIDs, new Scalar(0, 255, 0));
    Imgproc.putText(mRgba, "Aruco:"+ **arucoIDs.get(1,1)**, new Point(30, 30), 3, 1, new Scalar(255, 0, 0, 255), 1);   
}

I´ve tried using arucoIDs.get() function, but it doesn´t give me the marker ID that I need, depending on the ID, the robot will move to the left or right side. Thanks so much and regards