--- title: Photo keywords: fastai sidebar: home_sidebar nb_path: "nbs/indexers.FacerecognitionIndexer.Photo.ipynb" ---
This file contains many convenience functions and classes to work with photos in the context of importing data from external sources and machine learning. It contains functions for reading, plotting, resizing, etc.
p = IPhoto.from_path(PYI_TESTDATA / "photos" / "faceclustering" / "modern_family1.jpg")
p.show()
box = [240,240,400,400]
crop = p.get_crop(box)
crop = IPhoto.from_np(crop)
crop.show()
p.draw_boxes([box])