You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
529 B
14 lines
529 B
diff -up OpenCV-2.4.4/modules/contrib/doc/facerec/src/crop_face.py.pillow OpenCV-2.4.4/modules/contrib/doc/facerec/src/crop_face.py
|
|
--- ./modules/face/samples/etc/crop_face.py.pillow 2013-01-28 00:00:47.000000000 +0100
|
|
+++ ./modules/face/samples/etc/crop_face.py 2013-02-18 19:56:11.979405809 +0100
|
|
@@ -31,7 +31,8 @@
|
|
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
# POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
-import sys, math, Image
|
|
+import sys, math
|
|
+from PIL import Image
|
|
|
|
def Distance(p1,p2):
|
|
dx = p2[0] - p1[0]
|