public static class VisionEventsListener.DefaultImpls
Interface that user’s custom object should conform to in order to receive events from class VisionManager
.
Callbacks will not be called until Camera.calibrationProgress value reaches 1.0f
due to highly imprecise results.
Interface methods are called one by one followed by VisionEventsListener.onUpdateCompleted
call which denotes the end of the iteration.
NOTE: all delegate methods are called on a background thread.
Modifier and Type | Method and Description |
---|---|
static void |
onAuthorizationStatusUpdated(VisionEventsListener $this,
AuthorizationStatus authorizationStatus)
Authorization status was updated.
class VisionManager may not emit events unless it has successfully authorized. |
static void |
onCameraUpdated(VisionEventsListener $this,
Camera camera)
Camera state was updated.
Use this method to obtain current values of calibration progress, frame size, and other camera parameters from
class Camera instance. |
static void |
onCountryUpdated(VisionEventsListener $this,
Country country)
Country was updated.
|
static void |
onFrameDetectionsUpdated(VisionEventsListener $this,
FrameDetections frameDetections)
Detections were updated.
|
static void |
onFrameSegmentationUpdated(VisionEventsListener $this,
FrameSegmentation frameSegmentation)
Segmentation mask was updated.
|
static void |
onFrameSignClassificationsUpdated(VisionEventsListener $this,
FrameSignClassifications frameSignClassifications)
Classified signs were updated.
|
static void |
onRoadDescriptionUpdated(VisionEventsListener $this,
RoadDescription roadDescription)
Road description was updated.
Road description parameters reach maximum accuracy when
class Camera is calibrated and may not be produced until then. |
static void |
onUpdateCompleted(VisionEventsListener $this)
This method is called after the whole update iteration is completed. This means that all the data that came from delegate methods is in sync.
This method is an appropriate place to work with different values emitted from
class VisionManager during current iteration. |
static void |
onVehicleStateUpdated(VisionEventsListener $this,
VehicleState vehicleState)
Vehicle state was updated.
|
static void |
onWorldDescriptionUpdated(VisionEventsListener $this,
WorldDescription worldDescription)
World description was updated.
World description parameters reach maximum accuracy when
class Camera is calibrated and may not be produced until then. |
public static void onAuthorizationStatusUpdated(VisionEventsListener $this, AuthorizationStatus authorizationStatus)
Authorization status was updated.
class VisionManager
may not emit events unless it has successfully authorized.
class VisionManager
public static void onFrameSegmentationUpdated(VisionEventsListener $this, FrameSegmentation frameSegmentation)
Segmentation mask was updated.
public static void onFrameDetectionsUpdated(VisionEventsListener $this, FrameDetections frameDetections)
Detections were updated.
public static void onFrameSignClassificationsUpdated(VisionEventsListener $this, FrameSignClassifications frameSignClassifications)
Classified signs were updated.
public static void onRoadDescriptionUpdated(VisionEventsListener $this, RoadDescription roadDescription)
Road description was updated.
Road description parameters reach maximum accuracy when class Camera
is calibrated and may not be produced until then.
class Camera
public static void onWorldDescriptionUpdated(VisionEventsListener $this, WorldDescription worldDescription)
World description was updated.
World description parameters reach maximum accuracy when class Camera
is calibrated and may not be produced until then.
class Camera
public static void onVehicleStateUpdated(VisionEventsListener $this, VehicleState vehicleState)
Vehicle state was updated.
public static void onCameraUpdated(VisionEventsListener $this, Camera camera)
Camera state was updated.
Use this method to obtain current values of calibration progress, frame size, and other camera parameters from class Camera
instance.
class Camera
public static void onCountryUpdated(VisionEventsListener $this, Country country)
Country was updated.
public static void onUpdateCompleted(VisionEventsListener $this)
This method is called after the whole update iteration is completed. This means that all the data that came from delegate methods is in sync.
This method is an appropriate place to work with different values emitted from class VisionManager
during current iteration.
Note: Performance of this function is critical since class VisionManager
blocks until the method execution is finished.
class VisionManager
,
class VisionManager