File size: 300 Bytes
46bc602
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)