setAttentionRegion method
Sets the region of interest (ROI) for the Attention feature in the SeeSo SDK.
Use this function to set the region of interest (ROI) for the Attention feature in the SeeSo SDK.
The region
parameter should be a Rect object representing the area of interest
on the camera view.
Note: Before calling this function, ensure that the gaze tracker has been properly initialized and camera permission is granted. Otherwise, a PlatformException may be thrown.
Implementation
Future<void> setAttentionRegion(Rect region) async {
SeeSoPlatform.instance.setAttentionRegion(region);
}