You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry in advance if I'm doing something stupid here! I've been trying to convert a png image to json to plot it, but when I import linedraw and run image_to_json, I get the following error:
>>> from linedraw import *
>>> image_to_json("imagename", draw_contours=2, draw_hatch=16, repeat_contours=3)
generating contours...
finding edges...
getting contour points...
connecting contour points...
getting contour points...
connecting contour points...
optimizing stroke sequence...
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/liamriley/bg/BrachioGraph/linedraw.py", line 36, in image_to_json
lines=vectorise(
File "/Users/liamriley/bg/BrachioGraph/linedraw.py", line 120, in vectorise
contours = sortlines(getcontours(
File "/Users/liamriley/bg/BrachioGraph/linedraw.py", line 329, in sortlines
slines = [clines.pop(0)]
IndexError: pop from empty list
>>>
Is there an issue with the code?
The text was updated successfully, but these errors were encountered:
Sorry in advance if I'm doing something stupid here! I've been trying to convert a png image to json to plot it, but when I import linedraw and run image_to_json, I get the following error:
Is there an issue with the code?
The text was updated successfully, but these errors were encountered: