Olá,
Estou tentando pegar o texto que está dentro de uma imagem, para edição.
Achei este site: http://www.free-ocr.com/, no qual fiz upload da imagem (em anexo), e ele me retornou este texto:
public class lain {
protected String nontentrype - null;
public static Strinq cI\ax~acterBncodinq = ?ISII-8859-1' :
protected boolean clmroetset - tulle:
public static void main(Strinq[] args) (
new lain() .setContent1?ype(a:qs[0] ) 3
I
public void setContent'l?ype(Strin1| type) 1
int ollioolllnlnllox I -1;
if (type == null) 1 this.content'|?ype = null: returns)
boolean noltlharoet - false:
int len - type.len||th() :
int index = type.indeȢ0t(?:?):
while (index I- -1) {
eenicolonlndex = index: index-H-:
vnu; (mann < len as cnunoter.nsp¢oe(type.onaru.(mux))) {1ndeae++;)
if (index + 8 < len
£8 type.cna|:At(1ndex) -- 'c' 68 type.oharLt(:|.ndex + 1) -- 'n'
&& type.ol\arAt(index + 2) -» 'a' G8 type.ol\u°lt(imlex + 3) -- 't
&& type.charAt(1ndex + 4) = 's' 88 type.cl\arAt(:|.ndex + 5) == 'e
Iii ty||e.oh|rAt(1ndex + 6) an 't' £8 type.oherAt(:i.nAex + 7) In '-
l\asCl\arset = true: break:
D
index - type.indexIlf(' :' , index) 2
D
if (!huChareet) ( thimcontentlype I type: return: )
t|\1s.content?l'|pe = type.substrin||(0, seldcolonlndex);
stung tau - typ¢.nm¢t.rmg(mux + ay;
int nextlhrm = tai1.i.nde»dlt(' :' ) J
String chorsetvalne ~ null:
if (ne'xtPoru| I- -1) (
th:ls.content?l?ype += ta1l.sobstr1ng(nextPorll\) 2
ol\arletV¢1Ile I tei.'I..lubetring(0, nextParll):
) else { chareetValue = tail: }
1: qenuntvuue u- mn as enuncn1u¢.1engu\<| > oy {
cl\arsetSet = true:
oheraetvolue - el'm|:|etValue.replace( ' "' , ' '):
tl\i|.oluu'aotetEnood:in| ~ chareet?UoJ.ue.trin() :
)
I
}
Queria saber se há algum outro site que consiga converter para um texto mais próximo, com melhor rendimento de conversão.
