Hi @JeffGlass !
Thanks for this great example, I think this can be very powerful to showcase image processing algorithms. One idea for such a project would be: Choose an emoji, choose an algorithm from scikit-image, and then see the magic happen.
This is the normal python script:
from PIL import Image
import matplotlib.pyplot as plt
import requests
emoji = "🐶"
emoji_code = "-".join(f"{ord(c):x}" for c in emoji).upper()
url = f"https://raw.githubusercontent.com/hfg-gmuend/openmoji/master/color/618x618/{emoji_code}.png"
print(url)
im = Image.open(requests.get(url, stream=True).raw)
plt.imshow(im)
As expected, the import requests
fails in pyscript.
In case that you are interested in this problem, would you be interested to make a minimal example that fetches an image from another URL using pyscript?