I am getting this error when setting the s value to an array position, if i leave it like s = 50, it works but do not know the reason:
def Overlay_Points(Image_In_Path, Image_Out_Path, Points_Array):
plt.clf()
im = plt.imread(Image_In_Path)
implot = plt.imshow(im)
for c in range(len(Points_Array)):
if Points_Array[c][3] == 1:
plt.scatter(Points_Array[c][0], Points_Array[c][1], 'g', Points_Array[c][2])
else:
plt.scatter(Points_Array[c][0], Points_Array[c][1], 'r', Points_Array[c][2])
plt.savefig(Image_Out_Path)
plt.close()
return 1
Overlay_Points('Anillo.jpg', 'ejemplo.jpg', [[1000, 1000, 50, 1], [2000, 2000, 100, 0]])
Thanks for the help