VisionManagerProtocol

public protocol VisionManagerProtocol : AnyObject

Protocol that provides an ability to use VisionManager and VisionReplayManager interchangeably by abstracting common functionality.

  • Performance configuration for machine learning models. Default value is dynamic performance mode and high rate.

    Declaration

    Swift

    var modelPerformance: ModelPerformance { get set }
  • Converts the location of the point from a screen coordinate to a world coordinate.

    Declaration

    Swift

    func pixelToWorld(screenCoordinate: Point2D) -> WorldCoordinate?

    Parameters

    screenCoordinate

    Screen coordinate expressed in pixels

    Return Value

    World coordinate if screenCoordinate can be projected on the road and nil otherwise

  • Converts the location of the point from a world coordinate to a screen coordinate.

    Declaration

    Swift

    func worldToPixel(worldCoordinate: WorldCoordinate) -> Point2D?

    Parameters

    worldCoordinate

    Point in world coordinate

    Return Value

    Screen coordinate if worldCoordinate can be represented in screen coordinates and nil otherwise

  • Converts the location of the point from a geographical coordinate to a world coordinate.

    Declaration

    Swift

    func geoToWorld(geoCoordinate: GeoCoordinate) -> WorldCoordinate?

    Parameters

    geoCoordinate

    Geographical coordinate of the point

    Return Value

    World coordinate if geoCoordinate can be represented in world coordinates and nil otherwise

  • Converts the location of the point in a world coordinate to a geographical coordinate.

    Declaration

    Swift

    func worldToGeo(worldCoordinates: WorldCoordinate) -> GeoCoordinate?

    Parameters

    worldCoordinate

    World coordinate of the point

    Return Value

    Geographical coordinate if worldCoordinate can be represented in geographical coordinates and nil otherwise