A simple ocr translator powered by avernakis react.

Overview

build pack

简介

文影 (Language Shadow) 是一个简单的翻译器,原理:

  • 使用 OCR 识别指定区域,获得文字用于翻译。目前支持离线情况下,英文翻译成中文。
  • GUI 部分则是使用 Ave React 开发的。

language-shadow-usage

演示视频见:

安装

运行环境

  • 系统:Windows 10

步骤

解压缩后得到 language-shadow.exe,这是一个 GUI 应用,OCR 和翻译的功能则是由服务器提供的。

由于是离线使用的,需要额外下载两个服务器,并解压缩和 exe 放在一起:

下载它们,并解压到 exe 所在目录,确保目录结构如下,这样当 GUI 启动时,它们能被识别,从而自动启动:

- nlp-server
    - NLP-API.exe
    - ...
- ocr-server
    - PaddleocrAPI.exe
    - ...
- language-shadow.exe

双击 language-shadow.exe 即可运行。

扩展

运行过程中,OCR 和翻译会请求本地接口,因此,不使用以上离线服务器,而是自己起一个服务器对接在线 API,也可正常使用。

相关接口和数据结构约定见代码:

开发

> npm install
> npm run dev

开发过程中需要确保本机启动了 OCR 服务器和翻译服务器。

下载它们,并解压到项目下,确保项目目录结构如下:

- nlp-server
    - NLP-API.exe
    - ...
- ocr-server
    - PaddleocrAPI.exe
    - ...
- src
- ...
- package.json

打包

  • 生成 exe
> npm run release
  • ocr-servernlp-server 复制到 bin 目录中,和 exe 一起压缩打包。

开源协议

MIT

You might also like...
i18nano - Lightweight translation module with functionality similar to react-i18next

i18nano Internationalization for the react is done simply. Lightweight translation module with functionality similar to react-i18next. Features Async

🌎Type-safe internationalization and translation React library
🌎Type-safe internationalization and translation React library

Type-safe internationalization and translation React library Home - Documentation - Sandbox NEW: GZipped size 22.5Kb - 4.6Kb Asynchronous download of

Open-Source project made to auto translate react apps using i18next

open-source project made to auto translate react apps using i18next, this project should extract components text, translate, and replace it with i18n function, also it generates the json file for your target languages.

An OCR reader and translator document built using GCP

Aliased imports in React + TS Reference Link craco.config.js = File added to compile aliased paths into actual paths paths.json = File added to get

Implementation of tesseract-ocr using react

Implementation of tesseract-ocr using react

React Translator is a Web Interface created for make the creation of locales.json more easier.

React Translator is a Web Interface created for make the creation of locales.json more easier. Theses locales files can be used in the package @oneforx/react-translator

React Native Translator
React Native Translator

Unlimited free google translate component & hook

This project is about building a web application to translate languages using language translator API.
This project is about building a web application to translate languages using language translator API.

Language Translator App A web application to translate multiple languages Want to see live preview » ✧ View Demo ✧ Report Bug ✧ Getting Started ✧ Inst

Next.js + React CMS-powered blog and marketing site powered by ButterCMS
Next.js + React CMS-powered blog and marketing site powered by ButterCMS

React CMS-powered application built with Next.js Demo: https://react-cms-blog-with-next-js.orlyohreally.vercel.app/ Next.js is a small framework for b

painless transitions built for react-router, powered by react-motion

React Router Transition Painless transitions for React Router, powered by React Motion. Example site. Requirements To use the latest version of this p

A React & react-router-powered implementation of Hacker News using its Firebase API.
A React & react-router-powered implementation of Hacker News using its Firebase API.

react-hn A React & react-router-powered implementation of Hacker News using its Firebase API.

React Masonry layout component powered by CSS, dependancy free
React Masonry layout component powered by CSS, dependancy free

A new masonry component powered by CSS to be fast loading and free of jQuery or other dependencies. Built specifically for React projects. 😎 Why? Exi

react.js powered YouTube player component

react-youtube Simple React component acting as a thin layer over the YouTube IFrame Player API Features url playback playback event bindings customiza

A fully accessible, easily themeable, React-powered menu button

react-aria-menubutton A React component (set of components, really) that will help you build accessible menu buttons by providing keyboard interaction

A no-frills flexbox grid system for React, powered by styled-components.
A no-frills flexbox grid system for React, powered by styled-components.

Quick Jump Quick Jump Features Requirements Installation Using yarn Using npm Usage Basic Example Responsive Example Upgrading Documentation Grid.Prov

Material design for react, powered by materializecss
Material design for react, powered by materializecss

react-materialize Material design components for react, powered by materializecss. Install npm install materialize-css@next npm install react-material

Mobile App Framework powered by React

TouchstoneJS Mobile App Framework powered by React. See the demo at touchstonejs.io. Follow @touchstonejs on Twitter for updates. See the touchstone-s

A static site generator powered by Deno + React
A static site generator powered by Deno + React

A static site generator powered by Deno + React

A static site generator powered by Deno + React
A static site generator powered by Deno + React

A static site generator powered by Deno + React

Owner
null
Internationalize React apps. Not only for React.Component but also for Vanilla JS.

Work at Alibaba 加入我们 Join us as a frontend engineer in Alibaba group! react-intl-universal react-intl-universal is a React internationalization packag

Alibaba 1.3k Jan 3, 2023
A lightweight translation library for React/Preact projects with a similar interface to react-i18next

A lightweight translation library for React/Preact projects with a similar interface to react-i18next

null 62 Dec 2, 2022
Internationalization for react done right. Using the i18next i18n ecosystem.

react-i18next IMPORTANT: Master Branch is the new v10 using hooks. $ v10.0.0 npm i react-i18next react-native: To use hooks within react-native, you m

i18next 7.9k Dec 31, 2022
The monorepo home to all of the FormatJS related libraries, most notably react-intl.

FormatJS This repository is the home of FormatJS and related libraries. Slack: Join us on Slack at formatjs.slack.com for help, general conversation a

FormatJS 13.5k Jan 3, 2023
Universal internationalization (i18n) open source library for React

react-translate-maker React translation module. Internationalize your great project. This library is part of translate-maker. Star this project on Git

Cherry Projects 34 Aug 16, 2022
NodeJS module for extracting default i18n messages from a project files where using react-i18n-mini.

react-i18n-mini-parser NodeJS module for extracting default i18n messages from a project files where using react-i18n-mini. Example of usage npm i -D

Sanich 9 Jun 23, 2022
A tiny (<500 bytes) i18n library for React/Preact/Vue/Svelte

Nano Stores I18n Tiny and flexible JS library to make your web application translatable. Uses Nano Stores state manager and JS Internationalization AP

Nano Stores 141 Dec 21, 2022
User localization settings for React Native

user-localization-settings User localization settings for React Native. Installation // with expo expo install user-localization-settings // with yarn

Sara Pope 1 Mar 23, 2022
A tiny hook to manage translations in your React Application

TinyTranslate A tiny hook to manage translations in your React Application Install

Vinay M 2 Jan 20, 2022
Next.js internationalization with react-intl example

Next.js internationalization with react-intl example This project is a tutorial on how to do internationalization (i18n) in Next.js projects with buil

Localizely 7 Nov 5, 2022