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