Home
Softono
MORT

MORT

Open source MIT C#
1.6K
Stars
80
Forks
34
Issues
16
Watchers
1 week
Last Commit

About MORT

MORT 번역기 프로젝트 - Real-time game translator with OCR

Platforms

Web Self-hosted Windows

Languages

C#

🌏한국어 | English

GitHub downloads

ko-fi

Video Label

https://youtu.be/LHTErVnsaws

Sample video

MORT

MORT is a program that extracts dialogs from the screen in real time using OCR and outputs a translations using DB or machine translation.

Currently, English and Japanese translation/extraction can be extracted by default, and it can also be translated by linking with a hooking program using the save to clipboard function.

[Latest version download and release notes - https://blog.naver.com/killkimno/70179867557]

Features

  • Realtime translate
  • OCR - TesseractOCR , Windows OCR, Google Cloud Vision OCR, Snipping Tool OCR, Easy OCR
  • Machine translation - Naver Papago, Google Web, Google Sheet, ezTrans, DeepL
  • Language Patch with using DB
  • Multiple OCR areas
  • Img adjust

System Requirement

How to use

Basic usage

  1. After setting in the quick settings, press Trnaselate on the remote control to start translation
  2. Or Preferences tab -> Set the OCR language according to the language of the game to be translated
  3. Remote control -> Click Search and select the area where the lines appear
  4. Click Apply on MORT main form
  5. Remote control -> Real-time translation by pressing Translate

User Manual

Custom usage

Add translation result language code

You can add Google Translator language code in the UserData/UserTransCode.txt file​

code, name
(ex : it, Italian)

​A list of language codes can be found here: https://cloud.google.com/translate/docs/languages?hl=en

Custom API usage

  1. You can use a custom API based on HTTP
  2. Translation Type -> Custom API
  3. Advanced Settings -> Custom API URL Settings
    
    POST Rule
    name - string
    text - string - ocr string
    target - string - translation result language code
    source - string - ocr language code

ex { "name" : "test", "text" : "tank divsion" , "target" : "ko", "source" : "en" ... }

Reponse Rule result - string - translation result text errorCode - string - error code errorMessage - string - error message

ex { "result" : "탱크 사단", "errorMessage" : "", "errorCode" : "0" }



4. Example1 - Using LibreTranslate
* Translator address to use as an example
  - https://github.com/LibreTranslate/LibreTranslate
* sample code
  - https://github.com/CommitComedian/LT_Mort
  - Thank you [@CommitComedian](https://github.com/CommitComedian) for creating the sample!

  Example2 - Using NLLB
* Translator address to use as an example
  - https://github.com/thammegowda/nllb-serve
* sample code
  - https://github.com/TUVup/NLLB_serveMORTapi
  - Thank you [@TUVup](https://github.com/TUVup) for creating the sample!

## FAQ ##
<b>Can i use FullScreen Mode?</b>
- No you can't use it in fullscreen games, please use windowed mode, borderless windowed mode instead

<b>I'm using 32-bit Windows. Can I use MORT?</b>
- Use 32bit version MORT
- https://blog.naver.com/killkimno/222936631523

<b>I'm using 64-bit Windows. But Can't run with this error 0x8007045A.</b>
- CPU must Support AVX2. If Your CPU not support AVX2, Use 32bit version MORT instead
- https://blog.naver.com/killkimno/222936631523


## Develop the project
### Development environment ###

* Visaul Studio 2019 or higer
* Tesseract OCR 5.2.0 
* NHocr 0.21

### Create a build and run environment ###
1. Set the project to Release mode. Set the target CPU to X64.
2. Build the project first
3. Can't run after build. The reason is that there are no essential files required for run
4. Unzip the latest build files into the release folder to get the required files 
- https://drive.google.com/drive/folders/0BxO-Nrmd-kR7dVp5TWpMQ09jMFU?resourcekey=0-bx6_8OEv3WAGzz9Au9fxNg
5. MORT_CORE.DLL , nhocr.DLL To modify This dll, please refer to the related projects below

### Related Project ###

* MORT Core - MORT_CORE_DLL
  - https://github.com/killkimno/MORT_CORE

* MORT NHocr - nhocr.DLL
  - https://github.com/killkimno/MORT_NHOCR

## ETC ##
### Development Plans Trello ###

- https://trello.com/b/gPa1EL5x/mort

### Discord ###
- [Discord](https://discord.com/invite/ha5yNy9) ![Discord Badge](https://discord.com/api/guilds/742743719958151298/widget.png?style=shield)