scanRegion property

void scanRegion=(Region? region)

Specify a scan region for the camera. The video frames will be cropped based on the scan region.

The region is a Region value that refers to the scan region setting. You can also input null to make the scan region restore to default, this will make the scan region full the area that you specify.

You can use scanRegion like this:

final DynamsoftCameraView _cameraView = DynamsoftCameraView();
Region scanRegion = Region(regionTop: 20, regionBottom: 80, regionLeft: 20, regionRight: 80, regionMeasuredByPercentage: true);
_cameraView.scanRegion = scanRegion;

Implementation

set scanRegion(Region? region) => _cameraEnhancerCaller.setScanRegion(region: region);