use PIL.Image if available
This commit is contained in:
parent
8a2f6085ed
commit
cf16459ad7
2 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue