UIImage to CVPixelBuffer Conversion for CoreML in iOS This playground shows you to convert UIImage to PixelBuffer which can be passed as an input to the model for prediction. Feel free to contact me!