blob: 044786ebd3ba6c1b847062bd6b07515c0ad80afd [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://wicg.github.io/shape-detection-api/text.html#api
module shape_detection.mojom;
import "skia/public/mojom/bitmap.mojom";
import "ui/gfx/geometry/mojom/geometry.mojom";
struct TextDetectionResult {
string raw_value;
gfx.mojom.RectF bounding_box;
array<gfx.mojom.PointF> corner_points;
};
interface TextDetection {
Detect(skia.mojom.BitmapN32 bitmap_data)
=> (array<TextDetectionResult> results);
};