Merhabalar,
import cv2
import pyzbar.pyzbar as decode
import os
capture = cv2.VideoCapture(1)
while(True):
ret, image = capture.read()
detectedBarcodes = decode(image)
for barcode in detectedBarcodes:
(x, y, w, h) = barcode.rect
cv2.rectangle(image, (x, y), (x + w, y + h), (255, 0, 0), 5)
cv2.putText(image, "Barkod Data: " + str(barcode.data), (0, image.shape[0] - 10),
cv2.FONT_HERSHEY_TRIPLEX, 0.5, (0, 0, 0), 1)
#print(barcode.data)
#print(barcode.type)
cv2.imshow('Image with faces', image)
if (cv2.waitKey(1) == 27):
break
capture.release()
cv2.destroyAllWindows()
Hata nedeni nedir? Nasıl çözebilirim?