A Discord bot written in node.js that uses OCR to transcribe text from images
Dependencies:
discord.js>= 12.5.3googleapis>= 74.2.0ocr-space-api>=1.0.1request>= 2.88.2stream>= 0.0.2
Required authentication token files:
auth.json: Discord bot authentication tokengdrive.json: Google Drive authentication tokengoogle.json: Google authentication tokenocrspace.json: OCR.space Free API key (request here)
Usage:
- Currently it supports two OCR engines: OCR.space and Google
- Post
pngimages to channel - To use OCR.space engine, react using country flags:
:flag_jp:for Japanese,:flag_hk:for Traditional Chinese and:flag_cn:for Simplified Chinese - To use Google engine, react with
:regional_indicator_g:, language will be automatically detected - Google is better for recognizing obscure fonts, but may take longer since it needs to upload image to Google Drive then export it back as text