Commit 78e3879c authored by Josh Chien's avatar Josh Chien Committed by Alexander Alekhin

Merge pull request #2302 from dogod621:master

Fix incorrect pattern when sizeY is odd
parent 8b59dffc
......@@ -123,7 +123,15 @@ class MarkerPrinter:
if((squareLength is None) or (markerLength is None)):
raise ValueError("lenght is None")
if((( blockX % 2 == 0 ) == ( blockY % 2 == 0 )) or mode == "ARUCOGRID"):
dawMarkerBlock = False
if ((mode == "ARUCO") or (mode == "ARUCOGRID")):
dawMarkerBlock = True
elif(chessboardSize[1] % 2 == 0):
dawMarkerBlock = (( blockX % 2 == 0 ) == ( blockY % 2 == 0 ))
else:
dawMarkerBlock = (( blockX % 2 == 0 ) != ( blockY % 2 == 0 ))
if(dawMarkerBlock):
if (mode != "CHESS"):
if(dictionary is None):
raise ValueError("dictionary is None")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment