only detect in a section of camera preview layer, iOS, Swift
NickName:Tony Merritt Ask DateTime:2017-09-07T22:20:08

only detect in a section of camera preview layer, iOS, Swift

I am trying to get a detection zone in a live preview on my camera preview layer.

Is it possible for this, say there is a live feed and you have face detect on and as you look around it will only put a box around the face in a certain area for example a rectangle in the centre of the screen. all other faces in the preview that are outside of the rectangle don't get detected?

Im using Vision, iOS, Swift.

Copyright Notice:Content Author:「Tony Merritt」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/46098760/only-detect-in-a-section-of-camera-preview-layer-ios-swift

More about “only detect in a section of camera preview layer, iOS, Swift” related questions

only detect in a section of camera preview layer, iOS, Swift

I am trying to get a detection zone in a live preview on my camera preview layer. Is it possible for this, say there is a live feed and you have face detect on and as you look around it will only ...

Show Detail

Preview Layer Orientation - iOS

I have a preview layer which shows the camera preview, using AVFoundation. Now I want to start my app such that everything is in landscape mode. How do I do that for the preview layer? setorienta...

Show Detail

Swift clear camera preview layer

I have an app that displays camera preview on AVCaptureVideoPreviewLayer. When app goes to background session is stopped. The problem is, that when I open the app again, then before new session is

Show Detail

Swift clear camera preview layer

I have an app that displays camera preview on AVCaptureVideoPreviewLayer. When app goes to background session is stopped. The problem is, that when I open the app again, then before new session is

Show Detail

Camera preview layer does not show up Swift 4

I am creating a ViewController in which I want to have a somewhat small UIView in the corner of the ViewController to display the camera preview. I am using a function to do this. However when I pa...

Show Detail

Camera Preview Layer not showing up

I am Creating an App with a Custom Camera View in swift but the view is just black it seems that thelive preview window is not showing up, This is not working in my Xcode app, swift playgrounds on ...

Show Detail

OpenCv iOS camera preview single orientation only without stretching

I'm writing a OpenCv Cordova plugin for iOS. I needed the camera preview to be fullscreen and to maintain aspect ratio for all iOS devices (iPhone, iPads). I was able to achieve Portrait mode (see...

Show Detail

Apply custom camera filters on live camera preview - Swift

I'm looking to make a native iPhone iOS application in Swift 3/4 which uses the live preview of the back facing camera and allows users to apply filters like in the built in Camera app. The idea wa...

Show Detail

Camera preview layer makes button invisible

I'm trying to add a button over a camera preview but it doesn't show up when I run the program (I have constraints). I looked into the code and tried to debug but I'm new to swift and Xcode and I'm...

Show Detail

iOS: Capture image during camera preview without action

I'm trying to captur image from camera preview but can't get image from preview layer. What I want to do is kinda similar to iOS 15 OCR mode in Photo app which processes image during camera preview...

Show Detail