title: How to use dlib's shape_predictor in Objective-C?
body: <p>I'm trying to implement dlib's face landmark detection for an iOS application. 
  On dlib's example they initialize a shape_predictor as such:</p>
  
  <pre><code>// And we also need a shape_predictor.  This is the tool that will predict face
  // landmark positions given an image and face bounding box.  Here we are just
  // loading the model from the shape_predictor_68_face_landmarks.dat file you gave
  // as a command line argument.
      shape_predictor sp;
      deserialize(argv[1]) &gt;&gt; sp;
  </code></pre>
  
  <p>I'm trying to do the same in Objective-C and have gotten this far:</p>
  
  <pre><code>NSString *filePath = [[NSBundle mainBundle] pathForResource:@"shape_predictor_68_face_landmarks" ofType:@"dat"];
  NSData *myData = [NSData dataWithContentsOfFile:filePath];
  </code></pre>
  
  <p>Doing the following gives me an error of "Receiver type 'dlib::shape_predictor' is not an Objective-C class"</p>
  
  <pre><code>sp = [dlib::shape_predictor deserialize:myData];
  </code></pre>