Update handler.py
Browse files72 unmodified lines7374757677787972 unmodified linesretval , buffer = cv2.imencode('.jpg', clothes)cv2.imwrite("result.jpg", clothes)# create base 64 objectjpg_as_text = base64.b64encode(buffer).decode("utf-8") # Decode bytes to string")# base64_encoded = base64.b64encode(image_bytes).decode("utf-8")# Get the image format72 unmodified lines7374757677787972 unmodified linesretval , buffer = cv2.imencode('.jpg', clothes)cv2.imwrite("result.jpg", clothes)# create base 64 objectjpg_as_text = base64.b64encode(buffer) # Decode bytes to string")# base64_encoded = base64.b64encode(image_bytes).decode("utf-8")# Get the image format
handler.py+1-1