these are the code that's i try
y1,x1,y2,x2 = faceLoc y1, x1, y2, x2 = y1*4,x1*4,y2*4,x2*4 cv2.rectangle(img(x1,y1), (x2,y2), (0,255,0),2)
You are missing a comma after "img":
cv2.rectangle(img, (x1,y1), (x2,y2), (0,255,0),2)