Skip to content

Commit f15b0b7

Browse files
author
AleksandrPanov
committed
fix dict
1 parent 4c3cc7b commit f15b0b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

modules/aruco/misc/java/test/ArucoTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public class ArucoTest extends OpenCVTestCase {
1515

1616
public void testArucoIssue3133() {
1717
byte[][] marker = {{0,1,1},{1,1,1},{0,1,1}};
18-
Dictionary dictionary = Dictionary.create(1, 3);
18+
Dictionary dictionary = new Dictionary(1, 3);
1919
dictionary.set_maxCorrectionBits(0);
2020
Mat markerBits = new Mat(3, 3, CvType.CV_8UC1);
2121
for (int i = 0; i < 3; i++) {
@@ -32,7 +32,7 @@ public void testArucoIssue3133() {
3232
}
3333

3434
public void testArucoDetector() {
35-
Dictionary dictionary = Dictionary.get(0);
35+
Dictionary dictionary = Dictionary.getPredefinedDictionary(0);
3636
DetectorParameters detectorParameters = new DetectorParameters();
3737
ArucoDetector detector = new ArucoDetector(dictionary, detectorParameters);
3838

modules/aruco/samples/aruco_dict_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ int main(int argc, char *argv[])
253253
if (checkFlippedMarkers)
254254
dictionary = generateCustomAsymmetricDictionary(nMarkers, markerSize, makePtr<aruco::Dictionary>(), 0);
255255
else
256-
dictionary = aruco::generateCustomDictionary(nMarkers, markerSize, makePtr<aruco::Dictionary>(), 0);
256+
dictionary = aruco::extendDictionary(nMarkers, markerSize, makePtr<aruco::Dictionary>(), 0);
257257
dictionary->writeDictionary(fs);
258258
}
259259

0 commit comments

Comments
 (0)