gosseract

command module
v0.0.0-...-f6a09fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2021 License: MIT Imports: 8 Imported by: 0

README

说明

实现功能

参考 DangoOCR

开发参考

安装 vcpkg
  • 参考 vcpkg

  • 环境变量 Path 增加路径 [vcpkg root]/installed/x64-windows/bin

安装 pkg-config
  • Linux 直接安装 pkg-config,Windows 下用使用 [vcpkg root]/vcpkg install pkgconf:x64-windows

  • 配置 go 环境(Linux不用配置) go env -w PKG_CONFIG="[vcpkg root]/installed/x64-windows/tools/pkgconf/pkgconf"

  • 添加环境变量 PKG_CONFIG_PATH = [vcpkg root]/installed/x64-windows/lib/pkgconfig

安装依赖
  • tesseractleptonica 构建依赖于 sw,请提前配置完成

  • [vcpkg root]/vcpkg install tesseract:x64-windows

构建相关

依赖的 tesseract 在运行时会读取对应的训练模型,从 tessdata_fast 自行下载放入执行目录下的 tessdata 目录

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL