MCPcopy Create free account
hub / github.com/LituRout/RF-Inversion / download_image

Function download_image

scripts/test.py:14–16  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

12
13
14def download_image(url):
15 response = requests.get(url)
16 return PIL.Image.open(BytesIO(response.content)).convert("RGB")
17
18example_image = download_image("https://www.aiml.informatik.tu-darmstadt.de/people/mbrack/tennis.jpg")
19

Callers 1

test.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected