Google Cloud Vision
OCR, label, wajah, safe search dan kombinasi fitur apa pun untuk URL gambar (diunduh plugin), URI gs:// atau file lokal yang diizinkan, ditambah batch untuk gambar dan satu PDF. Panggilan berbayar tidak pernah diulang
Tentang
Plugin Graphrt untuk Google Cloud Vision dengan API key. Plugin ini membaca teks dari gambar (OCR), memberi label isi gambar, mendeteksi wajah dan ekspresinya, menilai gambar untuk konten tidak aman, dan menjalankan fitur Vision lain (logo, landmark, objek, warna, kecocokan web). Setiap operasi adalah node workflow dan tool agent.
Yang bisa dilakukan
- detect_text: OCR → {text, locale}, mode: dense (documents, photos of pages, default) or sparse (signs, labels), optional language_hints
- detect_labels: [{label, score, topicality, mid}]
- detect_faces: bounding boxes and joy/sorrow/anger/surprise likelihoods (no identity recognition), include_landmarks for the facial points
- detect_safe_search: adult, spoof, medical, violence and racy likelihoods
- analyze_image: several features at once, returns Vision's response for the image
- Batch pass-throughs: annotate_images (up to 16 images, Vision's own request format, agents may send only inline content or gs:// images) and annotate_files (OCR of one inline PDF/TIFF/GIF, up to 5 pages)
Aksi
Setiap aksi adalah langkah yang bisa ditambahkan ke workflow. Agent juga bisa memakai sebagian besar aksi sebagai tool.
- Read text (OCR)
google-vision.detect_text - Detect labels
google-vision.detect_labels - Detect faces
google-vision.detect_faces - Safe search
google-vision.detect_safe_search - Analyze image
google-vision.analyze_image - Annotate images (batch)
google-vision.annotate_images - Annotate PDF/TIFF files
google-vision.annotate_files
Pengaturan
Graphrt menyalakan plugin dengan environment yang bersih. Hanya nilai ini yang sampai ke plugin, dan secret tidak masuk log.
-
GOOGLE_VISION_API_KEYWajibAPI key, sent as x-goog-api-key (never in the URL) -
GOOGLE_VISION_UPLOAD_DIROpsionalDirectory image may read local files from (absolute path). Without it, image must be a URL or gs:// URI
Cara memakainya
Di Graphrt Desktop
- Buka Plugins dan cari Google Cloud Vision.
- Klik Install lalu setujui.
- Ikuti langkah setup di halaman plugin, lalu tempel pengaturan yang dibutuhkan.
- Jelaskan pekerjaan yang membutuhkannya, dan builder menambahkan langkahnya.
Dengan CLI
$ graphrt plugin install google-vision - id: receipt
type: google-vision.detect_text
image: "{{#start.receipt_url#}}"
- id: answer
type: answer
answer: "{{#receipt.data.text#}}"