so I am using OpenCV to read QR codes with my webcam and it is working great but the output for the data always has 'b' at the front and its messing with the database i'm working with.
font = cv2.FONT_HERSHEY_PLAIN
cap = cv2.VideoCapture(0)
flag = True
while flag == True:
_, frame = cap.read()
decodedObjects = pyzbar.decode(frame)
for obj in decodedObjects:
cv2.putText(frame, str(obj.data), (50,50), font, 3, (255, 0, 0), 3)
print(obj.data)
cv2.imshow("Frame", frame)
cv2.waitKey(1)
The output would be something like this b'Canon 50D' or b'Hello World' and I just need to get rid of the b.