Dictionary (OpenCV 4.13.0 Java documentation)
Примеры с cv2.imshow требуют сборки OpenCV с GUI. В ноутбуке с headless-версией используйте вывод изображений через Matplotlib.
Package org.opencv.objdetect
Class Dictionary
- java.lang.Object
-
- org.opencv.objdetect.Dictionary
-
public class Dictionary extends java.lang.ObjectDictionary is a set of unique ArUco markers of the same sizebytesListstoring as 2-dimensions Mat with 4-th channels (CV_8UC4 type was used) and contains the marker codewords where: - bytesList.rows is the dictionary size - each marker is encoded usingnbytes = ceil(markerSize*markerSize/8.)bytes - each row contains all 4 rotations of the marker, so its length is4*nbytes- the byte order in the bytesList[i] row://bytes without rotation/bytes with rotation 1/bytes with rotation 2/bytes with rotation 3//So is the j-th byte of i-th marker, in its k-th rotation. Python bindings generate matrix with shape of bytesList , but it should be indexed like C++ version. Python example for j-th byte of i-th marker, in its k-th rotation: