From 8dbf6f4c581430ae7393d1ed0c5f0b377ffebd7e Mon Sep 17 00:00:00 2001 From: Tony S Yu Date: Fri, 30 Mar 2012 10:18:03 -0400 Subject: [PATCH] Fix shape unpacking ((height, width), not (w, h)). --- doc/examples/plot_match_face_template.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/examples/plot_match_face_template.py b/doc/examples/plot_match_face_template.py index 49905941..d3cb7905 100644 --- a/doc/examples/plot_match_face_template.py +++ b/doc/examples/plot_match_face_template.py @@ -33,7 +33,7 @@ ax2.set_title('image') # highlight matched region xy = np.unravel_index(np.argmax(result), result.shape)[::-1] #-1 flips ij to xy -wface, hface = head.shape +hface, wface = head.shape rect = plt.Rectangle(xy, wface, hface, edgecolor='r', facecolor='none') ax2.add_patch(rect)