Closed bmabir17 closed 3 years ago
@bmabir17
scanner_settings.region.regionLeft = 25;
scanner_settings.region.regionTop = 0;
scanner_settings.region.regionRight = 32;
scanner_settings.region.regionBottom = 100;
scanner_settings.region.regionMeasuredByPercentage = 1;
await reader.updateRuntimeSettings(scanner_settings);
@bmabir17
I am a little puzzled why it was a scanner
in the beginning, and then it became a reader
.
sorry that was my mistake :sweat_smile:
This worked
scanner = scanner || await Dynamsoft.DBR.BarcodeScanner.createInstance();
let scanner_settings = await scanner.getRuntimeSettings();
console.log(scanner_settings);
scanner_settings.region.regionLeft = 25;
scanner_settings.region.regionTop = 0;
scanner_settings.region.regionRight = 32;
scanner_settings.region.regionBottom = 100;
scanner_settings.region.regionMeasuredByPercentage = 1;
await scanner.updateRuntimeSettings(scanner_settings);
For a particular reason i have to define the region defination as the code is defined in left most part of the image. tried the following code but the updateRuntimeSettings becomes null
I tried the python sdk where i needed to set the runtime settings as follows
Now i want the similar settings to be set on the js sdk