Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ async def analyze_path(file: UploadFile = File(...)):
|
|
29 |
image = Image.open(io.BytesIO(image_bytes)).convert("RGB")
|
30 |
|
31 |
# 🔵 Resize ảnh để xử lý nhanh hơn
|
32 |
-
image = image.resize((
|
33 |
image_np = np.array(image)
|
34 |
flipped_image = cv2.flip(image_np, -1)
|
35 |
|
|
|
29 |
image = Image.open(io.BytesIO(image_bytes)).convert("RGB")
|
30 |
|
31 |
# 🔵 Resize ảnh để xử lý nhanh hơn
|
32 |
+
image = image.resize((512, 512))
|
33 |
image_np = np.array(image)
|
34 |
flipped_image = cv2.flip(image_np, -1)
|
35 |
|