Hey everyone😊, I am building an app that includes a live camera feed preview. That's all I need to do along side identifying the images with createML's image classification. I don't need to capture images at all. I've seen some very complicated tutorials. I just want to use a couple of lines of code.
Hello @O3DP,
You can use AVCaptureVideoPreviewLayer to display a live video preview of the camera.
You can also access the camera stream samples using an AVCaptureVideoDataOutput, and then process those samples using your image classification model.
Setting all of this up will require some familiarity with AVCaptureSession, and will be more than just a couple lines of code, take a look at this sample code as a reference.
— Greg