Giter Site home page Giter Site logo

discourse-ocr-uploads's Introduction

Discourse OCR Uploads

This plugin uses the Google Cloud Vision API to perform Optical Character Recognition (OCR) on the images in the first post of a topic. It will then create a second post containing the recognized text.

Installation

To install the plugin see https://meta.discourse.org/t/install-a-plugin/19157

Configuration

  • Create a service account on Google Cloud Platform Creating and managing service accounts | Cloud IAM Documentation and create a key. Google will trigger a download of a JSON file. Open this in any text editor.
  • Copy the value of the client_id field into the discourse ocr uploads google client id setting.
  • Copy the value of the client_email field into the discourse ocr uploads google client email setting.
  • Copy the value of the private_key field into the discourse ocr uploads google private key setting. Make sure to remove the surrounding quotes but leave the -----BEGIN PRIVATE KEY----- in the beginning and the -----END PRIVATE KEY-----\n at the end.
  • Enable the plugin

The plugin can be enabled on a per-category basis. Go to the category settings tab, look for the OCR Uploads heading and check Perform OCR on the images in the first post of a topic.

Usage

In the eligible categories, any first post in a topic will be scanned for uploaded images. These will be processed by the Cloud Vision API and a second post will appear containing the recognized text.

discourse-ocr-uploads's People

Contributors

communiteq avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.