Explainer: Text Detection API - #113
Conversation
alvinjiooo
left a comment
There was a problem hiding this comment.
Hi @nondebug and @reillyeon,
PTAL and thanks!
Alvin
tomayac
left a comment
There was a problem hiding this comment.
Left a number of suggestions, but the general direction LGTM.
I wonder if there should be a way to opt in and out of features for different use cases:
- Pure OCR might not need the text position.
- Text blurring might not need the OCR'ed text.
Regarding opting in/out of I think maybe we can keep it in future work of this explainer can explore selective detection modes later when more OCR engines support it. |
tomayac
left a comment
There was a problem hiding this comment.
LGTM, thanks for having taken all my comments into account :-)
SHA: 7d59ac3 Reason: push, by reillyeon Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
SHA: 7d59ac3 Reason: push, by reillyeon Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Summary
We have put together an explainer dedicated to the Text Detection API, focusing on the motivation, benefits for web developers, and the modern asynchronous API design.
The full explainer can be found here:
https://github.com/alvinjiooo/shape-detection-api/blob/text-detection-explainer/text_detection_explainer.md
Key Topics Covered
Motivation & Tradeoffs Today:
Core API Surface (MVP):
static Promise<TextDetector> TextDetector.create()to ensure detector readiness before use and provide predictable error handling.detect(ImageBitmapSource image)returning detected text, axis-alignedboundingBox, and orientedcornerPointsquadrilateral vertices.WindowandDedicatedWorkercontexts to enable off-main-thread video and camera pipelines.Future Work & Potential Extensions:
TextDetector.availability(options)).We welcome thoughts, feedback, and discussion from the community and implementers!