We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b428e2f commit 7f8a86fCopy full SHA for 7f8a86f
1 file changed
barcodeQrSDK/scripts.py
@@ -45,7 +45,7 @@ def scanbarcode():
45
y4 = result.y4
46
47
cv2.drawContours(image, [np.array([(x1, y1), (x2, y2), (x3, y3), (x4, y4)], dtype=np.int32)], 0, (0, 255, 0), 2)
48
- cv2.putText(image, result.text, (x1, y1), cv2.FONT_HERSHEY_SIMPLEX, 0.4, (0, 0, 255), 2)
+ cv2.putText(image, result.text, (int(x1), int(y1)), cv2.FONT_HERSHEY_SIMPLEX, 0.4, (0, 0, 255), 2)
49
50
cv2.imshow("Scan Barcode & QR Code", image)
51
cv2.waitKey(0)
0 commit comments