I am trying to decode the digits from a Datamatrix. This is my code
import cv2
from pylibdmtx.pylibdmtx import decode
a = decode(cv2.imread(dmtx.jpg'))
print(a)
The code runs without error. But it doesn't print anything, it gives me an empty matrix.
I couldn't understand the decode() function.
Can someone suggest me to decode as digits using pylibdmtx lib?
Try to threshold the input image.