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/.
8 * Text that has been extracted from an image using an image recognition API.
10 dictionary ImageText {
12 * A scalar value representing how confident the text recognition model was in the
15 required float confidence;
18 * The recognized text.
20 required DOMString string;
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.
28 required DOMQuad quad;