Bug 1839170 - Refactor Snap pulling, Add Firefox Snap Core22 and GNOME 42 SDK symbols...
[gecko.git] / dom / chrome-webidl / ImageText.webidl
blob262a82b353eadf82b500d3f868090bb5cfe2a6c2
1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3  * License, v. 2.0. If a copy of the MPL was not distributed with this file,
4  * You can obtain one at http://mozilla.org/MPL/2.0/.
5  */
7 /**
8  * Text that has been extracted from an image using an image recognition API.
9  */
10 dictionary ImageText {
11   /**
12    * A scalar value representing how confident the text recognition model was in the
13    * produced result.
14    */
15   required float confidence;
17   /**
18    * The recognized text.
19    */
20   required DOMString string;
22   /**
23    * A DOMQuad representing the bounds of the text. This can be a free-form four pointed
24    * polygon, and not necessarily a square or parallelogram. It does not actually contain
25    * CSSPixels, but the points are ranged 0-1 and represent a ratio of the width / height
26    * of the source image.
27    */
28   required DOMQuad quad;