Spaces:
Sleeping
Sleeping
.file.read
Browse files
main.py
CHANGED
@@ -126,7 +126,7 @@ async def analyze_image(image_paths: list[UploadFile]):
|
|
126 |
# bytearray(f.read()), dtype=np.uint8
|
127 |
# )
|
128 |
# NumPy配列(メモリ上のデータ)から画像をデコード
|
129 |
-
file = await image_path.read()
|
130 |
print(file)
|
131 |
image = cv2.imdecode(file, cv2.IMREAD_COLOR)
|
132 |
# image = image_path.file
|
|
|
126 |
# bytearray(f.read()), dtype=np.uint8
|
127 |
# )
|
128 |
# NumPy配列(メモリ上のデータ)から画像をデコード
|
129 |
+
file = await image_path.file.read()
|
130 |
print(file)
|
131 |
image = cv2.imdecode(file, cv2.IMREAD_COLOR)
|
132 |
# image = image_path.file
|