public VisionEventsListener
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 | Interface and Description |
---|---|
static class |
VisionEventsListener.DefaultImpls
Interface that user’s custom object should conform to in order to receive events from
class VisionManager . |
Modifier and Type | Method and Description |
---|---|
void |
onAuthorizationStatusUpdated(AuthorizationStatus authorizationStatus)
Authorization status was updated.
class VisionManager may not emit events unless it has successfully authorized. |
void |
onCameraUpdated(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. |
void |
onCountryUpdated(Country country)
Country was updated.
|
void |
onFrameDetectionsUpdated(FrameDetections frameDetections)
Detections were updated.
|
void |
onFrameSegmentationUpdated(FrameSegmentation frameSegmentation)
Segmentation mask was updated.
|
void |
onFrameSignClassificationsUpdated(FrameSignClassifications frameSignClassifications)
Classified signs were updated.
|
void |
onRoadDescriptionUpdated(RoadDescription roadDescription)
Road description was updated.
Road description parameters reach maximum accuracy when
class Camera is calibrated and may not be produced until then. |
void |
onUpdateCompleted()
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. |
void |
onVehicleStateUpdated(VehicleState vehicleState)
Vehicle state was updated.
|
void |
onWorldDescriptionUpdated(WorldDescription worldDescription)
World description was updated.
World description parameters reach maximum accuracy when
class Camera is calibrated and may not be produced until then. |
void onAuthorizationStatusUpdated(AuthorizationStatus authorizationStatus)
Authorization status was updated.
class VisionManager
may not emit events unless it has successfully authorized.
class VisionManager
void onFrameSegmentationUpdated(FrameSegmentation frameSegmentation)
Segmentation mask was updated.
void onFrameDetectionsUpdated(FrameDetections frameDetections)
Detections were updated.
void onFrameSignClassificationsUpdated(FrameSignClassifications frameSignClassifications)
Classified signs were updated.
void onRoadDescriptionUpdated(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
void onWorldDescriptionUpdated(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
void onVehicleStateUpdated(VehicleState vehicleState)
Vehicle state was updated.
void onCameraUpdated(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
void onCountryUpdated(Country country)
Country was updated.
void onUpdateCompleted()
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