Однако загруженный формат не читается OpencCV (
Код: Выделить всё
cv2Это моя конечная точка:
Код: Выделить всё
from fastapi import FastAPI, File, UploadFile
from fastapi.responses import PlainTextResponse
@app.post("/video/test", response_class=PlainTextResponse)
async def detect_faces_in_video(video_file: UploadFile):
contents = await video_file.read()
print(type(video_file)) #
print(type(contents)) #
return ""
Подробнее здесь: https://stackoverflow.com/questions/732 ... deocapture
Мобильная версия