Merge branch 'RED-8800' into 'master'
RRED-8800: adjust coords to cropbox See merge request fforesight/ocr-service!55
This commit is contained in:
commit
378436cb2f
@ -24,7 +24,7 @@ public class RenderedPageOcrImage implements OcrImage {
|
||||
public AffineTransform getImageCTM() {
|
||||
|
||||
double scalingFactor = calculateScalingFactor();
|
||||
AffineTransform imageToCropBoxScaling = new AffineTransform(scalingFactor, 0, 0, scalingFactor, -pageInformation.minX(), -pageInformation.minY());
|
||||
AffineTransform imageToCropBoxScaling = new AffineTransform(scalingFactor, 0, 0, scalingFactor, 0, 0);
|
||||
|
||||
AffineTransform mirrorMatrix = new AffineTransform(1, 0, 0, -1, 0, pageInformation.height());
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user