I want to erase its background and get a white or transparent background preferably without the black dotes. I am trying PIL in python:
img1 = img.convert("L")
img1.show()
img1.save("im1.jpg")
and also
img2 = img.convert("1")
img2.show()
img1.save("im1.jpg")
This gives something like this:

Trying with matplotlib:
import matplotlib.pyplot as plt
plt.imshow(img1,cmap=plt.cm.binary)
plt.show()
plt.savefig("im1.jpg")
makes the background black, the original green as grey and the original black dots as white. 
Can you suggets what I can try?

