MCPcopy Create free account
hub / github.com/alpha2phi/python-apps / photo_2_cartoon

Function photo_2_cartoon

graphql-ml-serving/backend/model.py:8–12  ·  view source on GitHub ↗
(input_image)

Source from the content-addressed store, hash-verified

6
7
8def photo_2_cartoon(input_image):
9 p2c = Photo2CartoonPredictor(output_path="/tmp/")
10 nd_arr = p2c.run(input_image)
11 image = cv2.cvtColor(nd_arr, cv2.COLOR_RGB2BGR)
12 return Image.fromarray(image)
13
14
15def base64_encode_img(img):

Callers 1

messages_sourceFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected