Advertisement
Guest User

Untitled

a guest
Aug 16th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. //scaled image to 28x28
  2. UIImage *scaledCanvasImage = [self imageWithImage:self.drawingCanvas.image scaledToSize:CGSizeMake(28, 28)];
  3. self.imageToDetect = [[CIImage alloc]initWithImage:scaledCanvasImage];
  4.  
  5. MLModel *ml_model = [[[keras_mnist_cnn alloc] init] model];
  6. VNCoreMLModel *vnc_core_ml_model = [VNCoreMLModel modelForMLModel: ml_model error:nil];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement