use PIL.Image if available

This commit is contained in:
j 2016-06-25 20:16:50 +02:00
parent 8a2f6085ed
commit cf16459ad7
2 changed files with 8 additions and 2 deletions

View file

@ -6,7 +6,10 @@ from __future__ import division, with_statement, print_function
import fractions
import subprocess
import Image
try:
from PIL import Image
except:
import Image
import numpy as np
import ox

View file

@ -5,7 +5,10 @@ from __future__ import division, with_statement, print_function
from glob import glob
from time import time
import Image
try:
from PIL import Image
except:
import Image
import math
import os