wai572 commited on
Commit
f9adc21
·
1 Parent(s): e5725a6

.file.read

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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