パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v2.2.1

google_vision

クロスプラットフォームアプリケーションに Google Visions の画像ラベル付け、顔、ロゴ、ランドマーク検出、OCR、および露骨なコンテンツの検出を追加できます。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
306
いいね数
46
Pub ポイント
160

パッケージをインストール

flutter pub add google_vision

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

google_vision パッケージは、クロスプラットフォームの Flutter アプリケーションが Google Cloud Vision API を活用して高度な画像分析を行うことを可能にします。画像ラベル付け、顔およびランドマーク検出、ロゴ認識、光学文字認識(OCR)、明示的なコンテンツの識別をサポートしています。Android、iOS、Web、macOS、Windows、Linux とシームレスに統合されることで、開発者が視覚コンテンツを理解する知能型アプリを開発できるようになります。このパッケージは、シンプルな Dart インターフェースを通じて強力な機械学習モデルへのアクセスを容易にします。

用途

  • 画像コンテンツモデレーション
  • 自動ドキュメントスキャン
  • ビジュアル検索機能
  • ユーザー生成コンテンツ分析
  • アプリにおける顔とオブジェクトの認識
  • ブランドロゴの検出

主な機能

  • テキスト抽出を備えたOCRに対応
  • 顔、ランドマーク、ロゴを検出
  • 明示的またはセンシティブなコンテンツを識別します
  • クロスプラットフォーム互換性
  • シンプルなAPI統合
  • リアルタイム画像分析

適している対象

  • 画像理解が必要なアプリ
  • AIを活用したツールを開発する開発者
  • モデレーションが必要なコンテンツプラットフォーム
  • ドキュメント処理アプリケーション
  • 視覚機能を備えたモバイルおよびウェブアプリ

注意事項

  • Google Cloud API キーが必要です
  • 使用料金が発生する可能性があります
  • インターネット接続に依存します
  • 制限されたオフライン機能
  • レート制限が適用されます
  • 画像データのプライバシーに関する考慮事項

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Google Vision Workspace

Melos-managed Dart/Flutter monorepo for the Google Vision API.

pub package pub package

Packages

Package Description Pub
google_vision Core Dart REST client for image annotation, OCR, and document analysis pub
google_vision_cli CLI tool for running Vision API requests from the terminal pub
google_vision_flutter Flutter widget wrapping the core library pub

Features

  • Image Labeling — identify objects, locations, activities, and more
  • Face Detection — detect faces and facial attributes (emotion, headwear, etc.)
  • Logo Detection — recognize popular brand logos
  • Landmark Detection — identify natural and man-made landmarks
  • Optical Character Recognition (OCR) — extract text from images and documents
  • Safe Search — detect explicit content across multiple categories
  • Crop Hints — suggest optimal image crops
  • Web Detection — find matching images and pages on the web

Quick Start

Dart (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'),
);
CLI
# Install via Homebrew
brew tap cdavis-code/google-vision
brew install vision

# Run landmark detection
vision detect --image-file photo.jpg --features LANDMARK_DETECTION
Flutter
GoogleVisionFlutter(
  apiKey: 'YOUR_API_KEY',
  imagePath: 'assets/photo.jpg',
  features: [FeatureType.labelDetection],
)

Authentication

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

Workspace Commands

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

CI / CD

GitHub Actions workflows run on every push:

License

MIT

カテゴリー

依存関係

依存関係一覧 12 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。