Skip to content

Instantly share code, notes, and snippets.

Tesseract Training

业务需求用到了OCR技术,Tesseract因为是开源项目又是google推的,自然成为了比较好的选择

这货国内的文档少,在网上被网友坑了几圈后决定自己留份文档看!被我坑的不要怪我咯。

直接来训练

安装配置什么的问题自行Google,我tm要直接从训练开始写!其实官方的文档差不多就够了,但是有一些典型的问题google都找不到答案。貌似这个项目没有在好好维护啊,所以还是自己来吧。

首先准备好训练集

#技术类
1、类型转换:如1+"1" "1"+1 1+true等
2、什么是闭包,闭包有什么作用,举出几个实用闭包的例子。
3、call() 和 apply()的区别
4、举出Array对象尽可能多的内置方法
5、举出字符串操作尽可能多的方法
6、用面向对象的方式介绍自己或是创建一个对象。实现继承这个对象。
7、说出有哪些实现动画的方法
8、如何实现跨域,有哪些方法?
9、json和对象的区别是什么?
@andrewlkho
andrewlkho / gist:7373190
Last active March 25, 2024 03:37
How to use authentication subkeys in gpg for SSH public key authentication

GPG subkeys marked with the "authenticate" capability can be used for public key authentication with SSH. This is done using gpg-agent which, using the --enable-ssh-support option, can implement the agent protocol used by SSH.

Requirements

A working gpg2 setup is required. It may be possible to use gpg 1.4 but with gpg-agent compiled from gpg2. If you are using OS X 10.9 (Mavericks) then you may find the instructions [here][1] useful.

@jysperm
jysperm / QQ-Qun.md
Last active January 7, 2016 02:58
@jboner
jboner / latency.txt
Last active July 25, 2024 11:30
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD