center_v = list(zip(x_centroids, y_centroids))
center_v = np.array(center_v)
center_v.shape = (20,1,2)
if debug == "plot":
img2 = np.copy(img)
for i in top:
x = i[0,0]
y = i[0,1]
cv2.circle(img2,(int(x),int(y)),10,(255,0,0),-1)
for i in bottom:
x = i[0,0]
y = i[0,1]
cv2.circle(img2,(int(x),int(y)),10,(255,0,255),-1)
for i in center_v:
x = i[0,0]
y = i[0,1]
cv2.circle(img2,(int(x),int(y)),10,(0,79,255),-1)
//print_image(img2, (str(device) + "_x_axis_pseudolandmarks.png"))
plot_image(img2)
return device, top, bottom, center_v
if extent < 21:
// If the width of the object is less than 20 pixels just make the object a 20 pixel rectangle