Git Product home page Git Product logo

goorc's Introduction

goorc

百度文字识别 API go语言版

流程

获取 access_token 读取相对目录 图片/ 下的所有文件, 进行 base64 编码 urlencode编码 ,post方式调用 API接口 返回的值 提取存到 识别结果.txt 文件下

使用

将源码 goorc.goclient_idclient_secret 改为自己的 百度文字识别应用

	client_id := "xxxxxxx"  //必须参数,应用的API Key
	client_secret := "xxxxxx"  //必须参数,应用的Secret Key

支持通用文字识别和通用文字识别高精度版 自行修改

		general_basic(access_token,image,filePath)    // 通用文字识别
		// accurate_basic(access_token,image,filePath)  // 通用文字识别高精度版

运行

go run goorc.go

构建 exe

go build goorc.go

goorc's People

Contributors

unkaer avatar

Watchers

James Cloos avatar

Forkers

sycdtk lyhiving

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.