picasso
picasso copied to clipboard
Alternative method for converting a vectorized/png image into coord
Congratulations on making this thought-provoking tool!
I am trying to use it and got stuck on creating my coordinate file. One of the notebooks uses Mathematica. Is there an alternative method? I am trying to download a free trial of Matematica to try the code anyways.
Thanks again.
Yes, you can definitely do this is other languages. All that the Mathematica code is doing is taking a black and white image, and finding the coordinates of the black outline.
In python, you can convert an image to black and white with PIL as described here and then select the coordinates of the non-white points (the shape outline) as described here. This should then produce a set of x,y coordinates to use as input.
Thank you for the fast response. This is very helpful. I will try.