zweigraf / face-landmarking-ios

👦 Basic face landmarking on iPhone with Dlib via Swift & ObjC++
481 stars 126 forks source link

Ignoring enqueueSampleBuffer #19

Open tveritinova opened 7 years ago

tveritinova commented 7 years ago

Hi! During the restart of the application, the picture from the camera does not appear and writes a message: Ignoring enqueueSampleBuffer: because status is "failed" Are there any solutions?

tveritinova commented 7 years ago

I find a solution: http://stackoverflow.com/questions/43687169/ios-ignoring-enqueuesamplebuffer-because-status-is-failed

def1984 commented 7 years ago
// MARK: AVCaptureVideoDataOutputSampleBufferDelegate

if layer.status == .failed { layer.flush() } layer.enqueue(sampleBuffer)