- Redo and readd OpenCV-2.4.4-pillow.patch . - Add OpenCV-3.1-pillow.patch to apply only opencv_contrib . - Add the %python_provide macro (Packaging:Python guidelines).
14 lines
529 B
Diff
14 lines
529 B
Diff
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]
|