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

Issue 790931 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Feature

Blocking:
issue 659138



Sign in to add a comment

Implement optical character recognition (OCR) on Win 10

Project Member Reported by junwei...@intel.com, Dec 1 2017

Issue description

Using Windows.Media.Ocr[1] COM interface with Windows Runtime C++ Template Library (WRL)[2] that is a template library that provides a low-level way to use Windows Runtime components.

[1] https://docs.microsoft.com/en-us/uwp/api/windows.media.ocr
[2] https://msdn.microsoft.com/en-us/library/hh438466.aspx


 
Project Member

Comment 1 by bugdroid1@chromium.org, Dec 14 2017

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

commit 29334cc25640781cbb4d775dc1c03ca97b5c684c
Author: junweifu <junwei.fu@intel.com>
Date: Thu Dec 14 07:04:46 2017

ShapeDetection: Start with the minimum Text Detection Win implementation

Load com base functions dynamically at runtime with core_winrt_util.
Text Detection only support Latin-1 text as documented in specification[1], the
service can't be connected if the language isn't supported on the system.
Create OcrEngine interface that provides optical character(OCR) functionality.
Add unittest to test the result of Creating OcrEngine.

[1] https://wicg.github.io/shape-detection-api/text.html#text-detection-api

BUG= 790931 

Cq-Include-Trybots: master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win10_chromium_x64_rel_ng
Change-Id: I4e171aad11a50197c7cfb64547defa24d0988f3e
Reviewed-on: https://chromium-review.googlesource.com/813237
Commit-Queue: Junwei Fu <junwei.fu@intel.com>
Reviewed-by: Miguel Casas <mcasas@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#524016}
[modify] https://crrev.com/29334cc25640781cbb4d775dc1c03ca97b5c684c/services/shape_detection/BUILD.gn
[modify] https://crrev.com/29334cc25640781cbb4d775dc1c03ca97b5c684c/services/shape_detection/text_detection_impl.h
[add] https://crrev.com/29334cc25640781cbb4d775dc1c03ca97b5c684c/services/shape_detection/text_detection_impl_win.cc
[add] https://crrev.com/29334cc25640781cbb4d775dc1c03ca97b5c684c/services/shape_detection/text_detection_impl_win.h
[add] https://crrev.com/29334cc25640781cbb4d775dc1c03ca97b5c684c/services/shape_detection/text_detection_impl_win_unittest.cc

Project Member

Comment 2 by bugdroid1@chromium.org, Dec 28 2017

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

commit 361e08a9b3a70514069bf4fd8d4e1b4d9270733e
Author: junweifu <junwei.fu@intel.com>
Date: Thu Dec 28 00:35:17 2017

ShapeDetection: Recognize text asynchronously on windows 10

Create Windows bitmap from detected SkBitmap that is Rgba8/Bgra8 color
type. Recognize text asynchronously with the created Windows bitmap,
and pause incoming method call to prevent the Detect function from
being called before the AsyncOperation completes.

Add unittest to test the result of recognizing text.

BUG= 790931 

Cq-Include-Trybots: master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win10_chromium_x64_rel_ng
Change-Id: I03156d7f9bdde009072811f28c1e029d1df4d378
Reviewed-on: https://chromium-review.googlesource.com/833529
Reviewed-by: Yuzhu Shen <yzshen@chromium.org>
Reviewed-by: Greg Thompson <grt@chromium.org>
Reviewed-by: Miguel Casas <mcasas@chromium.org>
Reviewed-by: Reilly Grant <reillyg@chromium.org>
Commit-Queue: Junwei Fu <junwei.fu@intel.com>
Cr-Commit-Position: refs/heads/master@{#526256}
[modify] https://crrev.com/361e08a9b3a70514069bf4fd8d4e1b4d9270733e/services/shape_detection/BUILD.gn
[modify] https://crrev.com/361e08a9b3a70514069bf4fd8d4e1b4d9270733e/services/shape_detection/detection_utils_win.cc
[modify] https://crrev.com/361e08a9b3a70514069bf4fd8d4e1b4d9270733e/services/shape_detection/detection_utils_win.h
[modify] https://crrev.com/361e08a9b3a70514069bf4fd8d4e1b4d9270733e/services/shape_detection/face_detection_impl_win.cc
[modify] https://crrev.com/361e08a9b3a70514069bf4fd8d4e1b4d9270733e/services/shape_detection/text_detection_impl_win.cc
[modify] https://crrev.com/361e08a9b3a70514069bf4fd8d4e1b4d9270733e/services/shape_detection/text_detection_impl_win.h
[modify] https://crrev.com/361e08a9b3a70514069bf4fd8d4e1b4d9270733e/services/shape_detection/text_detection_impl_win_unittest.cc
[add] https://crrev.com/361e08a9b3a70514069bf4fd8d4e1b4d9270733e/services/test/data/text_detection.png

Status: Started (was: Untriaged)
Status: Fixed (was: Started)

Sign in to add a comment