VisionPresentationViewController
Presents segmentation and detection events emitted from VisionManager
as well as raw video frames.
Displayed content depends on the current value of visualizationMode
.
In Segmentation
and Detections
modes VisionPresentationViewController
displays according events when VisionManager
or VisionReplayManager
is started.
In Clear
mode raw video frames are displayed:
- in case of
VisionManager
: fromVideoSource
provided duringVisionManager
creation on new events, - in case of
VisionReplayManager
: from recorded video whenVisionReplayManager
is started.
-
Determines what type of events should
VisionPresentationViewController
display.Default value is
Clear
. -
Controls the visibility of the Mapbox logo.
-
Configures
VisionPresentationViewController
withVisionManager
orVisionReplayManager
.Call this method with an instance of
VisionManager
to display different events when they’re available.VisionPresentationViewController
will show frames as long asVisionManager
exists.@param visionManager Instance of
VisionManager
orVisionReplayManager
whose events you’d like to display. The instance is held as a weak reference.