Skip to content

Commit 423c1a7

Browse files
committed
fix orientation correction code
1 parent 8c780b9 commit 423c1a7

File tree

1 file changed

+1
-1
lines changed
  • _articles/extended-usage

1 file changed

+1
-1
lines changed

_articles/extended-usage/ocr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ This is an optional step. If the scanned document is rotated, we can detect its
144144
async function CorrectOrientationForOne(index){
145145
let result = await DWTObject.Addon.OCRKit.DetectPageOrientation(index);
146146
if (result.angle != 0) {
147-
DWTObject.Rotate(index,result.angle,true);
147+
DWTObject.Rotate(index,-result.angle,true);
148148
}
149149
}
150150
```

0 commit comments

Comments
 (0)