platform_interface library

Where the browser plugin plugs Google's JavaScript runtime into the classic text tasks.

Applications should import mediapipe_text.dart instead.

Classes

TextTaskBackend
One of Google's text tasks, created and run by a platform backend.

Properties

textTaskBackendFactory ↔ Future<TextTaskBackend> Function(String task, Map<String, Object?> options)?
Creates Google's task (text_classifier, text_embedder or language_detector) from options named as in Google's JavaScript API, plus modelBytes (a Uint8List) or modelPath (a URL).
getter/setter pair