Tif image CreateAnchorTemplate and FindAnchor issue with DPI
Posted: Mon May 27, 2019 3:11 am
Hi,
We have a product where we let users create Tif OCR template and then process Tif images to populate fields based on the template to match on OCR anchor.
It all works great if the template and processing images have same DPI. However it doesn't work if the DPI are not same. For example we found an issue where the template Tif has 300 DPI resolution. Whenever process images of 200 DPI resolution against the template, it doesn't return the correct coordinates for the anchor, which then results in wrong data field values.
We have tried to scale or manually set the resolution to same value, but still the anchor is not right.
We have also tried to do some math and calculate search coordinates in inches and then calculate pixels depending of the resolution but it doesn't seem to work right.
Please download the example Tif files in below link. 300 DPI tif is used to create template. The anchor coordinates are stored in inches in database. 200 DPI tif is then processed for data fields against the template. When processed the resulting anchor found is way bigger which is not right and results in incorrect OCR data.
https://drive.google.com/file/d/1DMXblT ... sp=sharing
Ajit
We have a product where we let users create Tif OCR template and then process Tif images to populate fields based on the template to match on OCR anchor.
It all works great if the template and processing images have same DPI. However it doesn't work if the DPI are not same. For example we found an issue where the template Tif has 300 DPI resolution. Whenever process images of 200 DPI resolution against the template, it doesn't return the correct coordinates for the anchor, which then results in wrong data field values.
We have tried to scale or manually set the resolution to same value, but still the anchor is not right.
We have also tried to do some math and calculate search coordinates in inches and then calculate pixels depending of the resolution but it doesn't seem to work right.
Please download the example Tif files in below link. 300 DPI tif is used to create template. The anchor coordinates are stored in inches in database. 200 DPI tif is then processed for data fields against the template. When processed the resulting anchor found is way bigger which is not right and results in incorrect OCR data.
https://drive.google.com/file/d/1DMXblT ... sp=sharing
Ajit