This file contains hidden or 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
import numpy as np | |
import matplotlib.pyplot as plt | |
from sklearn.cluster import DBSCAN | |
from scipy.spatial import ConvexHull | |
import cv2 | |
from pathlib import Path | |
from typing import Tuple, List, Optional | |
import cvat_sdk | |
from cvat_sdk import Client |
This file contains hidden or 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
# install: | |
# pip install fastapi | |
# pip install uvicorn | |
# launch: | |
# python snapimages.py | |
# use, in browser open: | |
# http://127.0.0.1:8000/docs | |
from fastapi import ( |