Skip to content

A simple OCR app that provides translations from Chinese to English

Notifications You must be signed in to change notification settings

jumpcutfindo/fanyi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fanyi (翻译)

image

Fanyi (翻译) is a simple, optical screen reading (OCR) application that is meant to aid in translating Mandarin content on the screen into English.

It uses the CEDICT dictionary to provide definitions for Chinese phrases and words.

Note: This has been developed and tested primarily on Windows systems

How it works

The application takes a screenshot and passes it into EasyOCR. The text is read, then passed into pkuseg for Chinese word segmentation. The system then tries to map it to the parsed CEDICT and produces the result.

Features

  • Reads text on your screen and helps to translate between Simplified and Traditional Chinese into English
  • Dictionary features that provide translations and pinyin
  • Presets can be set up to easily capture the same region of the screen
  • User interface for looking through information captured from the image provided
  • User preferences for easy reuse on the next startup

How to use

  1. Ensure you have Python (>=3.12 preferrably) installed on your system
  2. Install the required packages with python -m pip install -r requirements.txt
  3. Launch the application
  4. Select a valid CEDICT dictionary on your system
  5. Select a preferred language
  6. Set up a preset to define the boundaries of the screen capture
  7. Screenshot, and let the system run :)

Note: By default, the installation will install a version of PyTorch that uses the CPU to carry out the screen reading. If you have an NVIDIA GPU, you might want to consider installing a version that supports CUDA. See the PyTorch - Get Started page for more information.

About

A simple OCR app that provides translations from Chinese to English

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages