패키지, 저장소 및 앱 카테고리 검색

패키지 상세v2.2.1

google_vision

크로스 플랫폼 애플리케이션에 Google Visions 이미지 레이블링, 얼굴, 로고 및 랜드마크 감지, OCR 및 노출 콘텐츠 감지를 추가할 수 있습니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
306
좋아요
46
Pub 점수
160

패키지 설치

flutter pub add google_vision

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

google_vision 패키지는 크로스 플랫폼 플러터 애플리케이션에서 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.