Skip to content

Commit cda2451

Browse files
committed
fix the rotation code in the OCR demo
1 parent 4aa09da commit cda2451

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
@@ -354,7 +354,7 @@ Here is the complete code of the demo.
354354
let result = await DWTObject.Addon.OCRKit.DetectPageOrientation(index);
355355
console.log(result);
356356
if (result.angle != 0) {
357-
DWTObject.Rotate(index,result.angle,true);
357+
DWTObject.Rotate(index,-result.angle,true);
358358
}
359359
}
360360

0 commit comments

Comments
 (0)