Matches in Nanopublications for { <http://purl.org/np/RA5RAOTiTGnVIBBU4JuLD9NEHJJJbfXhgRiL5bB62ApXQ#step> ?p ?o ?g. }
Showing items 1 to 6 of
6
with 100 items per page.
- step type ScriptTask assertion.
- step type Step assertion.
- step label "Rotating an image represented as a string by 180 degrees" assertion.
- step description "@is_fairstep(label='Rotating an image represented as a string by 180 degrees') def rotate_image(imgstr:str) -> str: imgIn = Image.open(io.BytesIO(imgstr)) imgOut = imgIn.transpose(Image.ROTATE_180) imgOutStr = io.BytesIO() imgOut.save(imgOutStr, format="png") return imgOutStr.getvalue() " assertion.
- step hasInputVar imgstr assertion.
- step hasOutputVar rotate_image-output1 assertion.