Search packages, repositories and app categories

GitHub repositorycdavis-code/google_vision_workspace

google_vision_workspace

Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.

google_vision_workspace project cover
Stars
22
Forks
13
Last push (UTC)
Jun 9, 2026
Project status
Active

Original README

English project snapshot. Visit GitHub for the latest content.

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

cdavis-code GitHub avatar
GitHub author

cdavis-code ↗

LanguagesDartTypeScriptJavaScriptShellHTMLRuby

Categories

Packages published by this repository

Dependencies used

Dependency list 1 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗