LMBestShotServiceProtocol
public protocol LMBestShotServiceProtocol
Best shot service protocol
-
Best shot service delegate
Declaration
Swift
var delegate: LMBestShotServiceDelegate? { get set }
-
Best shot detector object
Declaration
Swift
var detector: LunaCore.LCBestShotDetectorProtocol { get }
-
Отправка потока видео, снятого в очереди обработки. Sends a video stream shot in the processing queue. @param sampleBuffer Образец потока видео \ Sample of a video stream.
Declaration
Swift
func pushFrame(buffer: CMSampleBuffer)
-
Шлет изображение в очередь обработки. Функция работает только с одним кадром, без поддержки потокового видео или последовательности кадров . Sends a image in the processing queue. But it works only for one single frame, no video feed or frames sequence support @param image Изображение для обработки \ custom image.
Declaration
Swift
func pushFrame(image: CGImage)
-
Возобновить процесс обнаружения оптимального кадра, приостановленного методом bestShot() делегата. Resume the best shot detection process which was suspended through the
bestShot
delegate’s method.Declaration
Swift
func resume()
-
Sets detector’s screen (search zone) size
Declaration
Swift
func screenSize(_ size: CGSize, edges: UIEdgeInsets)
Parameters
size
zone size (usually screen)
edges
edge insets
-
Ask detector if any face founded
Declaration
Swift
func faceFound() -> Bool
Return Value
true - if face was founded, false - otherwhise
-
Launch interactions wizard
Declaration
Swift
func launchWizard()
-
Известить сервис о факте отображения пользователю подсказки с интеракцией Notify the service that the interaction hint was shown to the user
Declaration
Swift
func interactionHintDidShow()
-
Setup interactions list
Declaration
Swift
func defineStepsList(_ stepsList: [LCStepConfigProtocol])
Parameters
stepsList
interactions array
-
Enable video recording
Declaration
Swift
func enableVideoRecordWatchDog(faceFoundBlock: @escaping FaceFoundedBlock)
Parameters
faceFoundBlock
block that is triggered after a face is detected in the frame