-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c14b5a
commit cd65753
Showing
6 changed files
with
135 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,16 @@ | ||
from pydantic import BaseModel | ||
from fastapi_utils.enums import StrEnum | ||
from core.config import get_config | ||
from typing import List | ||
from enum import auto | ||
|
||
class Pong(BaseModel): | ||
pong: str = "Lacmus web API, version X.Y.Z" | ||
|
||
class Object(BaseModel): | ||
class Prediction(BaseModel): | ||
xmin: int | ||
xmax: int | ||
ymin: int | ||
xmax: int | ||
ymax: int | ||
label: str | ||
score: float | ||
label: str = 'Pedestrian' | ||
|
||
class Result(BaseModel): | ||
objects: List[Object] = None | ||
objects: List[Prediction] = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters