Closed nicholemnl closed 1 year ago
Why does setting the image size to 640x480 improve the reading of the MRZ?
Why does setting the image size to 640x480 improve the reading of the MRZ?
Having an incorrect resolution makes the scanned image blur or pixilated simply because it tries to match the size forcefully.
By default it captured a landscape image meaning the width should be wider than its height
the PreviewView default is FILL_CENTER, meaning it will try to fill the entire PreviewView which is “landscape” (mention above) https://developer.android.com/reference/androidx/camera/view/PreviewView.ScaleType#FILL_CENTER
For evidence, I have attached a comparison between two scanned image 480x640 vs 640x480
This would also resolves newlogic/smartscanner-core/issues/133
@nicholemnl should this still be merged?
Yes im gonna merge it now.
Issue
134 MRZ Improvement
Changes