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,6 +6,9 @@ from __future__ import division, with_statement, print_function
import fractions import fractions
import subprocess import subprocess
try:
from PIL import Image
except:
import Image import Image
import numpy as np import numpy as np
import ox import ox

View file

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