| commit | dcb09a1718c29c993b749e73ece5e1385fd64fa4 | [log] [tgz] |
|---|---|---|
| author | Ramin Halavati <rhalavati@google.com> | Mon Jul 15 08:28:55 2024 |
| committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Jul 15 08:28:55 2024 |
| tree | 64e2eac54de023f19dc2cb4f6c4a972d1e2ad09c | |
| parent | dbd629bfc73adca15dee90e2b4c98a4744951a95 [diff] |
Rotated bounding boxes of OCR output in accessibility trees. The angle parameter of the bounding rectangle of the OCR generated text specifies a local rotation of the rectangle around its (x,y) point. To apply it uniformly in all levels, a pre-processing step is added to the conversion of OCR proto to accessibility tree, which rotates all rectangles if they have an angle. This change puts the bounding boxes in the correct place for lines, but further steps are needed to fix the bounding boxes for words and symbols as they are computed based on character offsets. Tests: Tested locally on rotated PDFs (from the bug). AX-Relnotes: Bounding boxes of OCR generated text for non-horizontal images is fixed. Bug: 40918372 Change-Id: I77c415f34d85d03b9983213df95cd8f845d5287c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5694426 Reviewed-by: David Tseng <dtseng@chromium.org> Commit-Queue: Ramin Halavati <rhalavati@chromium.org> Cr-Commit-Position: refs/heads/main@{#1327367}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.