Update handler.py
Browse files- 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 |
|