Update handler.py
Browse files51 unmodified lines5253545556575851 unmodified linesclothes = img[y1:y2, x1:x2]retval, buffer = cv2.imencode(".jpg", clothes)# create base 64 objectjpg_as_text = base64.b64encode(buffer) # Decode bytes to string###########################################################################return jpg_as_text51 unmodified lines5253545556575851 unmodified linesclothes = img[y1:y2, x1:x2]retval, buffer = cv2.imencode(".jpg", clothes)# create base 64 objectjpg_as_text = base64.b64encode(buffer).decode("utf-8") # Decode bytes to string###########################################################################return jpg_as_text
handler.py+1-1