Location
public struct Location : Codable, Equatable
Defines the location of the bounding box around the object.
-
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
Locationwith member variables.Declaration
Swift
public init( top: Int, left: Int, width: Int, height: Int )Parameters
topY-position of top-left pixel of the bounding box.
leftX-position of top-left pixel of the bounding box.
widthWidth in pixels of of the bounding box.
heightHeight in pixels of the bounding box.
Return Value
An initialized
Location.
View on GitHub
Location Structure Reference