v2.2.1
google_vision
クロスプラットフォームアプリケーションに Google Visions の画像ラベル付け、顔、ロゴ、ランドマーク検出、OCR、および露骨なコンテンツの検出を追加できます。
46いいね 30630日間ダウンロード160Pub ポイント
AndroidiOSWebmacOSWindowsLinux
画像ラベル付け、顔、ロゴ、ランドマークの検出、光学式文字認識(OCR)、および露骨なコンテンツの検出などのGoogle Vision機能をアプリケーションに統合します。
以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
Melos-managed Dart/Flutter monorepo for the Google Vision API.
| Package | Description | Pub |
|---|---|---|
| google_vision | Core Dart REST client for image annotation, OCR, and document analysis | |
| google_vision_cli | CLI tool for running Vision API requests from the terminal | |
| google_vision_flutter | Flutter widget wrapping the core library |
import 'package:google_vision/google_vision.dart';
final googleVision = await GoogleVision.withApiKey('YOUR_API_KEY');
final response = await googleVision.image.labelDetection(
jsonImage: JsonImage.fromPath('path/to/image.jpg'),
);
# Install via Homebrew
brew tap cdavis-code/google-vision
brew install vision
# Run landmark detection
vision detect --image-file photo.jpg --features LANDMARK_DETECTION
GoogleVisionFlutter(
apiKey: 'YOUR_API_KEY',
imagePath: 'assets/photo.jpg',
features: [FeatureType.labelDetection],
)
The core library supports three auth strategies:
| Method | Use Case |
|---|---|
withApiKey(key) |
Quick start, development |
withJwt(credentialsJson) |
Service accounts, production |
withGenerator(generator) |
Custom token refresh logic |
This project uses Melos for monorepo management.
| Action | Command |
|---|---|
| Get dependencies | melos run dep |
| Analyze | melos run analyze |
| Format | melos run format |
| Build (codegen) | melos run build |
| Generate docs | melos run doc |
| Pana score check | melos run pana |
| Publish prep | melos run prep |
GitHub Actions workflows run on every push:
MIT
依存関係一覧 1 件
^7.8.1用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗