retinaface / test.py
Edvards's picture
added custom handler
46bc602
raw
history blame contribute delete
No virus
300 Bytes
from handler import EndpointHandler
from PIL import Image
import numpy as np
import matplotlib.pyplot as plt
# init handler
my_handler = EndpointHandler(path=".")
# load image
img = Image.open("angelina.jpg")
img_np = np.array(img)
# call handler
result = my_handler(img_np)
print(result)