Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -52,7 +52,7 @@ class EndpointHandler:
|
|
52 |
clothes = img[y1:y2, x1:x2]
|
53 |
retval, buffer = cv2.imencode(".jpg", clothes)
|
54 |
# create base 64 object
|
55 |
-
jpg_as_text = base64.b64encode(buffer) # Decode bytes to string
|
56 |
###########################################################################
|
57 |
return jpg_as_text
|
58 |
|
|
|
52 |
clothes = img[y1:y2, x1:x2]
|
53 |
retval, buffer = cv2.imencode(".jpg", clothes)
|
54 |
# create base 64 object
|
55 |
+
jpg_as_text = base64.b64encode(buffer).decode("utf-8") # Decode bytes to string
|
56 |
###########################################################################
|
57 |
return jpg_as_text
|
58 |
|