HOME/Articles/

pil example beginning (snippet)

Article Outline

Python pil example 'beginning'

Modules used in program:

  • import os
  • import numpy as np
  • import PIL.Image

python beginning

Python pil example: beginning

import PIL.Image
from keras.preprocessing.image import load_img, img_to_array
import numpy as np
from scipy.optimize import fmin_l_bfgs_b
from keras.applications import vgg19
from keras import backend as K
from PIL import Image
from keras.preprocessing.image import save_img
import os