This commit is contained in:
parent
0baea45210
commit
981ae3dc31
@ -129,7 +129,8 @@ def save_image():
|
|||||||
elif image.shape[2] == 4:
|
elif image.shape[2] == 4:
|
||||||
image = cv2.cvtColor(image, cv2.COLOR_RGBA2BGRA)
|
image = cv2.cvtColor(image, cv2.COLOR_RGBA2BGRA)
|
||||||
|
|
||||||
cv2.imwrite(os.path.join(output_dir, filename), image)
|
save_path = os.path.join(output_dir, filename)
|
||||||
|
cv2.imencode(Path(save_path).suffix, image)[1].tofile(save_path)
|
||||||
|
|
||||||
return "ok", 200
|
return "ok", 200
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user