How to get sample buffer to vision handler?

Hi,

I have two questions regarding the ActionAndVision sample application.
  1. After setting up the live AVSession how exactly and in which function is the sample buffer given to a visonhandler to perform a vision request. (for e.g. the getLastThrowType request)

  2. When and how is the captureOutput(...) func in the CameraViewController called? (line 268 ff)

I appreciate any help, thank you very much.

Accepted Reply

I have already found the answer. The method is called periodically and basically "automatically" whenever a new video frame is received via the delegate.

Replies

I have already found the answer. The method is called periodically and basically "automatically" whenever a new video frame is received via the delegate.
Code Block
[bold](
[Testx ](https://developer.apple.com/forums/content/attachment/ac12ee3b-4fb7-419d-899a-713ce85b7a75){: .log-attachment}
https://www.example.com/)