oscarfu0501 commited on
Commit
77aa4d1
1 Parent(s): ba28244

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -70,7 +70,7 @@ class EndpointHandler:
70
  else:
71
  x1, y1, x2, y2 = int(detections.xyxy[0][0]), int(detections.xyxy[0][1]), int(detections.xyxy[0][2]), int(detections.xyxy[0][3])
72
  clothes = img[y1: y2, x1: x2]
73
- clothes = cv2.cvtColor(clothes, cv2.COLOR_BGR2RGB)
74
  retval , buffer = cv2.imencode('.jpg', clothes)
75
  # im_bytes = buffer.tobytes()
76
 
 
70
  else:
71
  x1, y1, x2, y2 = int(detections.xyxy[0][0]), int(detections.xyxy[0][1]), int(detections.xyxy[0][2]), int(detections.xyxy[0][3])
72
  clothes = img[y1: y2, x1: x2]
73
+ # clothes = cv2.cvtColor(clothes, cv2.COLOR_BGR2RGB)
74
  retval , buffer = cv2.imencode('.jpg', clothes)
75
  # im_bytes = buffer.tobytes()
76