Skip to content

Commit

Permalink
init repo
Browse files Browse the repository at this point in the history
  • Loading branch information
rerender2021 committed Feb 8, 2023
1 parent 8d378e7 commit afd512f
Show file tree
Hide file tree
Showing 41 changed files with 1,054 additions and 116 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ jobs:
CI: true
- uses: actions/upload-artifact@v3
with:
name: ave-react-app
name: ave-ocr
path: "bin"
if-no-files-found: error
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
build
bin
# .pkg-cache
# .pkg-cache
dist
*.traineddata
Binary file modified .pkg-cache/v3.4/built-v14.20.0-win-x64
Binary file not shown.
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"arrowParens": "always",
"bracketSpacing": true,
"printWidth": 10000000,
"proseWrap": "never",
"useTabs": true,
"tabWidth": 4
}
36 changes: 27 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,52 @@
<p align="center">
<a href="https://qber-soft.github.io/Ave-React-Docs/">
<img width="200" src="https://qber-soft.github.io/Ave-React-Docs/img/Ave.svg">
</a>
<img width="200" src="./assets/ocr.png">
</p>

<h1 align="center">Avernakis React Template</h1>
<!-- <h1 align="center">OCR</h1> -->

<div align="center">

</div>

# Introduction

This is the template project of Ave React.
This is powered by [Avernakis React](https://qber-soft.github.io/Ave-React-Docs/) & [Tesseract.js](https://github.com/naptha/tesseract.js). 😀

Docs: [https://qber-soft.github.io/Ave-React-Docs/](https://qber-soft.github.io/Ave-Nodejs-Docs/)
It supports Chinese and English out of box.

## Dev
# Install

Download it from [Github Release](https://github.com/rerender2021/ocr/releases).

# Features

- drag and drop to open

![ocr-cn](./docs/image/ocr-cn.gif)

![ocr-en](./docs/image/ocr-en.gif)

- `Ctrl + V`: paste image from clipboard or file

![ocr-clipboard](./docs/image/ocr-clipboard.gif)

![ocr-file](./docs/image/ocr-file.gif)

- `Ctrl + C`: copy recognized text to clipboard

# Dev

```bash
> npm install
> npm run dev
```

## Package
# Package

```bash
> npm run release
```

## License
# License

[MIT](./LICENSE)
Binary file added assets/chi_sim.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/eng_bw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/moon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/ocr.ico
Binary file not shown.
Binary file added assets/ocr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/sun.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 7 additions & 6 deletions ave.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ const config: IPackConfig = {
build: {
projectRoot: __dirname,
target: "node14-win-x64",
input: "./build/src/app.js",
output: "./bin/ave-react-app.exe",
// debug: true,
input: "./dist/_/_/app.js",
output: "./bin/ocr.exe",
// set DEBUG_PKG=1
debug: false,
edit: false
},
resource: {
icon: "./assets/ave.ico",
icon: "./assets/ocr.ico",
productVersion: "0.0.1",
productName: "Ave React Template App",
productName: "Ave OCR",
fileVersion: "0.0.1",
companyName: "QberSoft",
fileDescription: "The Template App of Ave React",
fileDescription: "A simple ocr app",
LegalCopyright: ${new Date().getFullYear()} Ave React Copyright.`,
},
};
Expand Down
Binary file added docs/image/ocr-clipboard.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/image/ocr-cn.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/image/ocr-en.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/image/ocr-file.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
examples:
https://github.com/naptha/tesseract.js/blob/master/docs/examples.md

offline:
https://github.com/jeromewu/tesseract.js-offline

data of lang:
https://tesseract-ocr.github.io/tessdoc/Data-Files.html

table of lang:
https://github.com/naptha/tessdata/tree/gh-pages/4.0.0
Binary file added docs/video/ocr-clipboard.mp4
Binary file not shown.
Binary file added docs/video/ocr-cn.mp4
Binary file not shown.
Binary file added docs/video/ocr-en.mp4
Binary file not shown.
Binary file added docs/video/ocr-file.mp4
Binary file not shown.
Binary file added lang-data/chi_sim.traineddata.gz
Binary file not shown.
Binary file added lang-data/eng.traineddata.gz
Binary file not shown.
Loading

0 comments on commit afd512f

Please sign in to comment.