Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //scaled image to 28x28
- UIImage *scaledCanvasImage = [self imageWithImage:self.drawingCanvas.image scaledToSize:CGSizeMake(28, 28)];
- self.imageToDetect = [[CIImage alloc]initWithImage:scaledCanvasImage];
- MLModel *ml_model = [[[keras_mnist_cnn alloc] init] model];
- VNCoreMLModel *vnc_core_ml_model = [VNCoreMLModel modelForMLModel: ml_model error:nil];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement