VisionPresentationViewController
class VisionPresentationViewController : UIViewController
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
.Declaration
Swift
var visualizationMode: VisualizationMode { get set }
-
Controls the visibility of the Mapbox logo.
Declaration
Swift
var isLogoVisible: Bool { get set }
-
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.Declaration
Swift
func set(visionManager: MBVVisionManagerBaseNative)
Parameters
visionManager
Instance of
VisionManager
orVisionReplayManager
whose events you’d like to display. The instance is held as a weak reference. -
Declaration
Swift
public func set(visionManager: VisionManagerProtocol)