Matches in Nanopublications for { <http://purl.org/np/RA-3jLHF3wQXqayJC6Fiz48WOe5g1C5NV7aoaPDNjWzQY#step> ?p ?o ?g. }
Showing items 1 to 9 of
9
with 100 items per page.
- step type ScriptTask assertion.
- step type Step assertion.
- step label "Make white background of image transparent" assertion.
- step description "@is_fairstep(label='Make white background of image transparent') def white_to_transparency(img): from PIL import Image img = img.convert("RGBA") data = img.getdata() new_data = [] for item in data: if item[0] == 255 and item[1] == 255 and item[2] == 255: new_data.append((255, 255, 255, 0)) else: new_data.append(item) img.putdata(new_data) return img " assertion.
- step language LinguisticSystem assertion.
- step precedes step assertion.
- step hasInputVar img assertion.
- step hasOutputVar out1 assertion.
- step isStepOfPlan plan assertion.