BitmovinApiSdk\Models\MainSubject
Synopsis
class MainSubject
extends ApiResource
{
- // members
- public string $classification;
- public string $description;
- public float $appearanceTimeInSeconds;
- public float $centerX;
- public float $centerY;
- // methods
- public void __construct()
- public $this classification()
- public $this description()
- public $this appearanceTimeInSeconds()
- public $this centerX()
- public $this centerY()
- // Inherited methods from ApiResource
- public void __construct()
- public static $this create()
- public void toArray()
Hierarchy
Members
public
- $appearanceTimeInSeconds — float
- $centerX — float
- $centerY — float
- $classification — string
- $description — string
Methods
public
- __construct()
- appearanceTimeInSeconds() — The timestamp in seconds when this subject first appears or is most prominently visible in the shot (required)
- centerX() — The horizontal center position of the subject as a percentage from the left edge (0-100, where 0 is the left edge and 100 is the right edge) (required)
- centerY() — The vertical center position of the subject as a percentage from the top edge (0-100, where 0 is the top edge and 100 is the bottom edge) (required)
- classification() — The category or type of the detected subject based on the YOLOv8 OIv7 (Open Images V7) object detection model (e.g., 'person', 'vehicle', 'building') (required)
- description() — A detailed textual description of the subject's appearance and characteristics (required)