Update handler.py
Browse files69 unmodified lines707172737374757669 unmodified lines else: x1, y1, x2, y2 = int(detections.xyxy[0][0]), int(detections.xyxy[0][1]), int(detections.xyxy[0][2]), int(detections.xyxy[0][3]) clothes = img[y1: y2, x1: x2] clothes = cv2.cvtColor(clothes, cv2.COLOR_BGR2RGB) # clothes = cv2.cvtColor(clothes, cv2.COLOR_BGR2RGB) retval , buffer = cv2.imencode('.jpg', clothes) # im_bytes = buffer.tobytes() handler.py+1-1