Location

public struct Location : Codable, Equatable

Defines the location of the bounding box around the object.

  • top

    Y-position of top-left pixel of the bounding box.

    Declaration

    Swift

    public var top: Int
  • X-position of top-left pixel of the bounding box.

    Declaration

    Swift

    public var left: Int
  • Width in pixels of of the bounding box.

    Declaration

    Swift

    public var width: Int
  • Height in pixels of the bounding box.

    Declaration

    Swift

    public var height: Int
  • Initialize a Location with member variables.

    Declaration

    Swift

    public init(
        top: Int,
        left: Int,
        width: Int,
        height: Int
    )

    Parameters

    top

    Y-position of top-left pixel of the bounding box.

    left

    X-position of top-left pixel of the bounding box.

    width

    Width in pixels of of the bounding box.

    height

    Height in pixels of the bounding box.

    Return Value

    An initialized Location.