Skip to content

Commit 7f8a86f

Browse files
committed
Update
1 parent b428e2f commit 7f8a86f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

barcodeQrSDK/scripts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def scanbarcode():
4545
y4 = result.y4
4646

4747
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)
48+
cv2.putText(image, result.text, (int(x1), int(y1)), cv2.FONT_HERSHEY_SIMPLEX, 0.4, (0, 0, 255), 2)
4949

5050
cv2.imshow("Scan Barcode & QR Code", image)
5151
cv2.waitKey(0)

0 commit comments

Comments
 (0)