title: MATLAB - Run webcam parallel to processing
body: <p>Hello and thank you in advance.</p>
  
  <p>I am working on a MATLAB algorithm, using the computer vision toolbox, to detect objects from a live camera feed, displaying frames with bounding boxes on a deployable video player.</p>
  
  <p>Due to limitations of my hardware, the detection will be slower than the maximum FPS delivered by the camera.</p>
  
  <p>Now, I'd like to display the webcam video feed at maximum speed, not waiting for the detection to finish so that I will have a fluent output video with detections whenever they will be inserted.</p>
  
  <p>Is there a way?</p>
  
  <p>My first approach was to use the <code>parfeval</code> function to somehow run the detection parallel, but failed due to my lack of knowledge, how to give the frame to the detector and insert the resulting bounding boxes to the frame, "whenever they are finished".</p>