tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

ImageText.webidl (948B)


      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 */
      6 
      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;
     16 
     17  /**
     18   * The recognized text.
     19   */
     20  required DOMString string;
     21 
     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;
     29 };