google_vision
आपको क्रॉस-प्लेटफॉर्म एप्लिकेशन में Google Visions छवि लेबलिंग, चेहरा, लोगो और स्थान डिटेक्शन, OCR और स्पष्ट सामग्री के डिटेक्शन को जोड़ने की अनुमति देता है।
एप्लिकेशन में छवि लेबलिंग, चेहरा, लोगो और स्थान डिटेक्शन, ऑप्टिकल कैरेक्टर रिकग्निशन (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 ↗