tansyqinyrprj
Digital image processing project
1. Function list
- OCR extraction ID picture text information
- Style migration: candy, starry sky, Picasso, muse, mosaic, Kanagawa surf, Dada attention, shout, feather
- Basic functions: 39 in total. Summer and pepper noise, smooth average, smooth medium value, smooth Gaussian; image sharp-Raplaz operator, image sharp-sobel operator horizontal direction, image sharpness-sobel operator vertical direction, dual linear use of images with dual linearity Expand the interpolation method, move the image left 30 pixels, move down 50 pixels, rotate 45 degrees, and the zoom factor is 1, rotary gray diagram, after gray degree, two-value-global threshold method, histogram balanced, gray gray, gray gray, gray Diger diagram, imitation transformation, perspective transformation, image flipping, RGB to HSV, HSV to obtain H, HSV to get S, HSV to get V, RGB to get B, RGB to get G, RGB to get R, horizontal flip, diagonal flipping, confrontation, confrontation, confrontation Mirror, image operation calculation, image closed calculation, corrosion, expansion, top hat operation, bottom cap operation, Houghlinesp implementation line detection, Canny edge detection, image enhancement, Roberts operator edge of image, prewitt suplacian edge, laplacian count Extract the edge of the image and the edge of LOG.
Second, technology stack
2.1 front -end development
- Main development languages: HTML, CSS, JavaScript
- Frontier Framework: Vue.js
- Scaffolding: Vue-CLI
- UI: Elementui
- Code editor: Intellij IDEA
- Data exchange: AXIOS
- Front -end bag manager: npm
- Front -end Construction Tool: Webpack
2.2 Back -end development
- Main development language: python
- Back -end framework: FLASK
- Code editor: Intellij IDEA
- Version control system: git
- Cross-domain tools: Flask-Cors
Third, project operation
3.1 Installation dependencies
- First of all, the TesserACT needs to be installed locally. The project uses Tesseractv4.0 version, and
tesseract-ocr-setup-4.00.00dev.exe
is installed locally. PS D:xxx> tesseract -v
tesseract 4.00.00alpha
...
- TESSERACT language package download.
- Download chi_sim.traineddata. Save
chi_sim.traineddata
files under /安装路径/Tesseract-OCR/tessdata
path.
3.2 Modify configuration
Modify the configuration information in the config.py
file.
3.3 Front -end operation
First enter the FIRSEND folder in Terminal, and enter the following commands in turn.
# install dependency
npm install
# develop
npm run dev
If the start failure, try to delete the node_modules
folder and the package-lock.json
file to re-execute the above steps. If you still fail: try to reduce the local Node.js version, I use v12.17.0
.
3.4 back -end operation
Run app.py
in pycharm or other ideas.
Fourth, functional display
The basic function is slightly many, and there are pictures display in the project document.
4.1 OCR extract ID card picture text information
Style migration:
candy
Starry sky
Picasso
Muse
Mosaic
Kanagawa surf
Dadaism
Shout
feather