You are viewing limited content. For full access, please sign in.

Question

Question

Deskew changes the resolution in QF which changes the location of the zone OCR definitions

asked on July 9, 2015

I have one QF session where the resolution was changing with each and every scan. Even though all the pages were the same size and scanned at the same DPI. I disabled Deskew and the resolution stopped changing so that I could use Zone OCR again. What causes this?

0 0

Replies

replied on July 9, 2015

This is a limitation in the image processing library we use. The resolution would change by one pixel (actually, it's less than that, but rounding to the nearest integer makes it look like 1 pixel).

0 0
replied on July 9, 2015

In this case it was changing by up to 55 pixels in either direction.

0 0
replied on July 10, 2015

Could you send the session and sample image to Tech Support, please?

0 0
replied on July 10, 2015 Show version history

Below I will describe the technical perspective.

(Disclaimer: the description below does not necessarily represent our company's opinion of what constitutes a "software issue". If the issue you're seeing is affecting your use of our products and a suitable workaround cannot be found, please consider opening a support case.)

Pixel dimension changes are expected in deskewing, because rotating a rectangle by a few degrees will cause the corners of that rectangle to edge out a little bit. To avoid losing those pixels, the output image will have its width and height slightly increased to accommodate all original pixels. However, a change in DPI is not expected from deskewing.

The symptom described by Miruna is a separate issue, and that issue affects all image-modifying operations. Basically, the low-level library we use in Laserfiche handles the DPI values in floating-point, because several image formats (such as PNG and BMP) adopted image resolution units that would translate into non-integer-valued DPI values. However, the mid-level libraries were written to treat DPI values as integer-only. As a result, non-integer DPI values were truncated (as opposed to getting rounded to the nearest integer), which results in DPI values getting decreased by one for each image-modifying operation.

0 0
replied on July 10, 2015

If you set the location to use percent rather than pixel does it still effect the zone?

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.