Traceback (most recent call last):
File "main.py", line 55, in <module>
res=names[recognizer.pred ict(gray[y:y+h, x:x+w])-1]
TypeError: unsupported operand type(s) for -: 'tuple' and 'int'
This is my error . and the code is
import cv2
import numpy as np
import os
import serial
ser = serial.Serial('/dev/ttyACM0', 9600,...