I am having trouble converting the following command-line to Wand.
convert img.png -deskew 80% -print "%[deskew:angle]" null:
I was able to locate the deskew method in Wand but I want to store the amount of deskew.
You would use the Image.artifacts dict.
from wand.image import Image with Image(filename='rose:') as img: img.deskew(0.8 * img.quantum_range) # 80% angle = float(img.artifacts['deskew:angle'])
1.4m articles
1.4m replys
5 comments
57.0k users