CiscoTheProot/rpi/show-image.py

14 lines
No EOL
298 B
Python

from PIL import Image
import numpy as np
svg_file = 'CiscoTheProot/testImg.svg'
from xml.dom import minidom
doc = minidom.parse(svg_file) # parseString also exists
path_strings = [path.getAttribute('d') for path
in doc.getElementsByTagName('path')]
doc.unlink()
print("hello")