I am using pylibdmtx.pylibdmtx to read a data matrix image, I am able to successfully read the image but in the result i am getting in decoded format like: [Decoded(data=b'05251255541/001430/HS21CS ', rect=Rect(left=193, top=138, width=280, height=277))]. Can someone help me to extract text from this format?
image = cv2.imread(image_name, cv2.IMREAD_UNCHANGED)
print(image)
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
ret,thresh = cv2.threshold(gray, 0, 255, cv2.THRESH_BINARY | cv2.THRESH_OTSU)
msg = decode(thresh)
print(msg)```