1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-18 17:24:28 +08:00
This commit is contained in:
AleksandrPanov
2022-11-02 16:28:54 +03:00
parent 0159ea3cf6
commit 95cf9efea9
2 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ public class ArucoTest extends OpenCVTestCase {
public void testArucoIssue3133() {
byte[][] marker = {{0,1,1},{1,1,1},{0,1,1}};
Dictionary dictionary = Dictionary.create(1, 3);
Dictionary dictionary = extendDictionary(1, 3);
dictionary.set_maxCorrectionBits(0);
Mat markerBits = new Mat(3, 3, CvType.CV_8UC1);
for (int i = 0; i < 3; i++) {
@@ -32,7 +32,7 @@ public class ArucoTest extends OpenCVTestCase {
}
public void testArucoDetector() {
Dictionary dictionary = Dictionary.get(0);
Dictionary dictionary = getPredefinedDictionary(0);
DetectorParameters detectorParameters = new DetectorParameters();
ArucoDetector detector = new ArucoDetector(dictionary, detectorParameters);

View File

@@ -253,7 +253,7 @@ int main(int argc, char *argv[])
if (checkFlippedMarkers)
dictionary = generateCustomAsymmetricDictionary(nMarkers, markerSize, makePtr<aruco::Dictionary>(), 0);
else
dictionary = aruco::generateCustomDictionary(nMarkers, markerSize, makePtr<aruco::Dictionary>(), 0);
dictionary = aruco::extendDictionary(nMarkers, markerSize, makePtr<aruco::Dictionary>(), 0);
dictionary->writeDictionary(fs);
}