Files
ai-hand/main.py
2025-01-23 01:13:29 +08:00

10 lines
326 B
Python

from fastapi import FastAPI
from ai.checkHandStatic import checkHandStatic
app = FastAPI()
# http://0.0.0.0:9741/ai/check_hand?url=http://bj-mc-prod-asset.oss-cn-beijing.aliyuncs.com/wiki-pic/Gesture13.jpg
@app.get("/ai/check_hand")
async def checkHand(url: str = ''):
hand = checkHandStatic()
return hand.check(url)