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 ↗