Background
- You can decide whether to darken the background around the document detection frame.
Show/hide the background mask:
DocumentReader.setConfig({
customization: {
showBackgroundMask: true
},
}, (str) => { console.log(str) }, (error) => { console.log(error) });
- Change the intensity of the background mask:
DocumentReader.setConfig({
customization: {
backgroundMaskAlpha: 0.5
},
}, (str) => { console.log(str) }, (error) => { console.log(error) });
- Set an image within the camera frame:
DocumentReader.setConfig({
customization: {
borderBackgroundImage: "Base64String"
},
}, (str) => { console.log(str) }, (error) => { console.log(error) });
- Change the content mode of an image that is located within the camera frame:
DocumentReader.setConfig({
customization: {
borderBackgroundImageContentMode: Regula.DocumentReader.Enum.UIViewContentMode.ScaleAspectFit
},
}, (str) => { console.log(str) }, (error) => { console.log(error) });