File size: 252 Bytes
e724e19
 
 
 
78cd05e
e724e19
 
 
 
1
2
3
4
5
6
7
8
9
10
import base64
from handler import EndpointHandler

my_handler = EndpointHandler(path=".")
image = base64.b64encode(open("../sam-vit-huge/car.png", "rb").read())

input = {"image": image, "points": [[450, 600]]}
result = my_handler(input)
print(result)