with open("test.mp4", 'wb') as new_file:
new_file.write(downloaded_file)
send()
with open("test.mp4", 'wb') as new_file:
new_file.write(downloaded_file)
send()
...
for plate in plates:
x, y, w, h = plate
centreX = int((x + (x + w)) / 2)
...
for i in range(81):
x, y = divmod(i, 9)
rects = sorted([cv2.boundingRect(c) for c in cnts], key=lambda x: x[0])
for x,y,w,h in rects:
# и далее как есть. x, y, w, h = cv2.boundingRect(c) соответственно убрать.