Coder Social home page Coder Social logo

translation-tool's Introduction

translation-rool

当初只是为了偷懒..仅供娱乐

使用方法

  • 每次使用前输入"on"
  • 将鼠标放至待翻译的单词/语句的左上方,显示坐标后再放至右下方

原理

  • 寻找两次鼠标放置的坐标
  • 截取两次坐标构成的矩形
  • 提取图片中的文字
  • 送至有道翻译
  • 爬取翻译结果(source.txt)

需要安装

  • tesseract-ocr-3.05.2
  • tesseroct-2.3.1
  • Google Chrome(版本尽量新一点)
  • MongoDB(非必须,仅用于存储每次查询的单词)

所需库

  • selenium
  • pyquery
  • pyautogui
  • tesserocr
  • pymongo
  • pillow

translation-tool's People

Contributors

thexyzhou avatar

Stargazers

 avatar  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.