I have list of tuples (x,y coordinates) converted to a string and written in a file. When I read line from file, my list looks like this:
[(341, 115), (174, 227), (457, 308)]
how do I convert this kind of list to numpy array? end result should look like this:
[[341 115]
[174 227]
[457 308]]
np.array("[(341, 115), (174, 227), (457, 308)]")?