New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 866019 link

Starred by 2 users

Issue metadata

Status: Verified
Owner:
Last visit > 30 days ago
Closed: Aug 20
Cc:
Components:
EstimatedDays: ----
NextAction: 2018-08-28
OS: Windows
Pri: 3
Type: Bug



Sign in to add a comment

Text detection API not detecting correctly.

Project Member Reported by mcasas@chromium.org, Jul 20

Issue description

Text detector api
Both detects fine, But some of values not provided
Windows 10, Google Chrome, BoundingBox values are all 0.
Mac, Google Chrome, RawValues ""

Please tell me, What version of chrome and OS does it work?
 
Originally filed in the Spec https://github.com/WICG/shape-detection-api/issues/42

ganbat6093@, could you provide more info as to how to repro? A codepen/jsfiddle
would be great, together with the versions of Chrome and Win used.
Owner: junwei...@intel.com
Both RawValue and BoundingBox have been supported on Android Platform that can detect Latin language [1].

Text Detection on Mac with CIDetectorTypeText[2] API only finds areas that are likely to contain upright text, but does not perform optical character recognition, so the rawValue is "".

Maybe the BoundingBox on Windows is a bug that need to be fixed with OcrWord.BoundingRect[3] Property.

[1] https://developers.google.com/android/reference/com/google/android/gms/vision/text/TextBlock.html#getValue()
[2] https://developer.apple.com/documentation/coreimage/cidetectortypetext?language=objc
[3] https://docs.microsoft.com/en-us/uwp/api/windows.media.ocr.ocrword.boundingrect

Comment 3 Deleted

The demo provided by you in the codepen is not working. I tested the Windows 10, Chrome Version 67.0.3396.99 (Official Build) (64-bit). I attached the output screenshot.
Text detection work find but Bounding box values are all 0.
The code link is https://codepen.io/miguelao/pen/ygxVqg 

Then I tested it on Mac, Chrome Latest build too. In the MacOS, Bouding box values are all fine, But texts[i].rawValue is empty.
Capture.PNG
80.0 KB View Download
ganbat6093@, thanks for the info, could you please try with Chrome Canary
as well?
Labels: Needs-Milestone Needs-Feedback Triaged-ET
Tried testing the issue on Win-10 using chrome latest stable #67.0.3396.99 and latest canary #70.0.3507.0 as per comment #4.
Observed that after navigating to https://codepen.io/miguelao/pen/ygxVqg and clicking on the "Detect the text" button, an error appeared as text detection not supported.

mcasas@ - Could you please provide any other sample file /url to test the issue from TE-end.

Thanks...!!
#6: you probably need 
  chrome://flags/#enable-experimental-web-platform-features
enabled
Project Member

Comment 8 by sheriffbot@chromium.org, Jul 31

Cc: krajshree@chromium.org
Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
mcasas@chromium.org I tried with Chrome Canary too, Windows 10. BoundingBox values are  0 as well. 

On my android phone Text detection API works fine with Android Chrome.
Status: Started (was: Unconfirmed)
junwei.fu@ is working on this on crrev.com/c/1156054
Project Member

Comment 11 by bugdroid1@chromium.org, Aug 8

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/ecf2d44818648b5345b8bc02e2c33c46398667ec

commit ecf2d44818648b5345b8bc02e2c33c46398667ec
Author: junweifu <junwei.fu@intel.com>
Date: Wed Aug 08 08:09:35 2018

ShapeDetection: Get bounding box in the line of Text on Windows 10

The OcrLine[1] has no BoundingRect properties, so the result of bounding box
need to be calculated by the words in the current line of text.

[1] https://docs.microsoft.com/en-us/uwp/api/windows.media.ocr.ocrline

BUG= 866019 

Cq-Include-Trybots: luci.chromium.try:mac_optional_gpu_tests_rel;luci.chromium.try:win10_chromium_x64_rel_ng
Change-Id: I7bcbd527b55b685f03a8c1783ca8c7bf7b090ee2
Reviewed-on: https://chromium-review.googlesource.com/1156054
Commit-Queue: Junwei Fu <junwei.fu@intel.com>
Reviewed-by: Miguel Casas <mcasas@chromium.org>
Cr-Commit-Position: refs/heads/master@{#581499}
[modify] https://crrev.com/ecf2d44818648b5345b8bc02e2c33c46398667ec/services/shape_detection/text_detection_impl_win.cc
[modify] https://crrev.com/ecf2d44818648b5345b8bc02e2c33c46398667ec/services/shape_detection/text_detection_impl_win_unittest.cc

NextAction: 2018-08-28
Status: Fixed (was: Started)
ganbat6093@gmail.com  could you please give a go with some recent
Chrome Canary to verify this is been fixed ? (Don't have a W10 
machine nearby).
The NextAction date has arrived: 2018-08-28
this is been fixed. Works fine. in windows 10. Latest Chrome Canary
Status: Verified (was: Fixed)
\o/

Sign in to add a comment