google_vision
Permite adicionar detecção de rótulos de imagem do Google Visions, rostos, logotipos e marcos, OCR e detecção de conteúdo explícito em aplicativos multiplataforma.
Integra recursos do Google Vision, incluindo rotulagem de imagens, detecção de rostos, logotipos e pontos turísticos, reconhecimento óptico de caracteres (OCR) e detecção de conteúdo explícito em aplicativos.
Texto original em inglês. Visite o GitHub para a versão atual.
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
Lista de dependências 1 itens
^7.8.1Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗