10 lines
326 B
Python
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)
|