Skip to content

Commit e477da5

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

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
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++) {

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)