Graphrt

Google Cloud Vision

OCR, labels, faces, safe search and any feature mix for an image URL (downloaded by the plugin), gs:// URI or allowed local file, plus batch pass-throughs for images and one PDF, billed calls never retried

Beta v0.1.0 Node.js 7 actions
Use in Graphrt Desktop

About

A Graphrt plugin for Google Cloud Vision with an API key. It reads text from images (OCR), labels what an image shows, finds faces and their expressions, rates images for unsafe content, and runs any other Vision feature (logos, landmarks, objects, colors, web matches). Every operation is a workflow node and an agent tool.

What it can do

  • 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)

Actions

Each action is a step you can add to a workflow. Agents can also use most of them as tools.

  • 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

Settings

Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.

  • GOOGLE_VISION_API_KEY Required
    API key, sent as x-goog-api-key (never in the URL)
  • GOOGLE_VISION_UPLOAD_DIR Optional
    Directory image may read local files from (absolute path). Without it, image must be a URL or gs:// URI

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Google Cloud Vision.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

With the CLI

terminal
$ graphrt plugin install google-vision
workflow.yaml
- id: receipt
  type: google-vision.detect_text
  image: "{{#start.receipt_url#}}"
- id: answer
  type: answer
  answer: "{{#receipt.data.text#}}"
Plugins in the docs