Show image with landmarks
(image, landmarks)
| 81 | # |
| 82 | |
| 83 | def show_landmarks(image, landmarks): |
| 84 | """Show image with landmarks""" |
| 85 | plt.imshow(image) |
| 86 | plt.scatter(landmarks[:, 0], landmarks[:, 1], s=10, marker='.', c='r') |
| 87 | plt.pause(0.001) # pause a bit so that plots are updated |
| 88 | |
| 89 | plt.figure() |
| 90 | show_landmarks(io.imread(os.path.join('data/faces/', img_name)), |
no outgoing calls
no test coverage detected