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