Skip to content

Martialis - Optical Character Recognition Discord Bot running on Google's Tesseract OCR Engine

Notifications You must be signed in to change notification settings

aura0003/Martialis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marcus Valerius Martialis "Martialis"

Marcus Valerius Martialis, "Martialis" is a Optical character recognition discord bot running on Google's Tesseract OCR Engine.

If you plan to modify this bot have to:

  • Have tesseract installed on your platform as well as all the libraries and stuff
  • Keep the credits, and a link to this repository in all the files that contains my code
  • Keep the same license for unchanged code

Support

Before requesting support, you should know that this bot requires you to have at least a basic knowledge of Python, Google's OCR Engine (Tesseract), and the libraries involved. Do not use the bot or attempt to modify it if you don't know the basics. Here's a link for resources to learn python.

If you need some help for something, do not hesitate to contact me on discord @aura0003

Disclaimer

OCR commands can take some time to get registered globally, so if you want to run batches you should use the ocr 'link' command via dms to ignore channel clutter.

Also make sure that all Intents are enabled both in the code and the Discord Developer Portal

All discord intents enabled for the bot

# Setting Intents & Prefix

intents =  discord.Intents.all()
client =  commands.Bot(command_prefix  =  '',  intents=intents)  # Command Prefix

Please do not open issues or pull requests about things that are written in the TODO file, they are already under work for future versions

How to download it

How to set up

To start the bot you simply need to launch, either your terminal (Linux, Mac & Windows), or your Command Prompt (Windows).

Before all that though, we need to install Google's Tesseract on our system if we want the OCR to work. All installation guides can be found at https://tesseract-ocr.github.io/tessdoc/Installation.html.

Before running the bot you will need to install all the requirements with this command:

pip3 install -r requirements.txt
pip3 install opencv-contrib-python

After that you can start it with

python3 bot.py

Note You may need to replace python with py, python3, python3.11, etc. depending on what Python versions you have installed on the machine.

Note The file app.py is the EDSR staging file, no need to run or fiddle with it unless you want to understand the EDSR Super Res code.

Built With

Disclaimer When using the template you confirm that you have read the license and understand that I can take down your repository if you do not meet these requirements.