I am trying to convert the screenshot given in this Stack Overflow question to a textual representation. I already did it by hand, but I'd like not to have to do that sort of thing again in the future.
The example I give here is an error message, not code. But it contains vaguely code-like text, and I'd also like a solution that handles source code.
Is there any free OCR software that is good at reading source code? Preferably open source, though I'm not totally picky. A free web app might be okay too.
With default settings, the result from GOCR comes out like this:
__ _ _ _ _ _ Search
''9__dn: sess_on_st_O [Mn_cjon. sess_on-st_]: C_ot send sess_on coo_e - headers dready sent by (ou_ut st_ed at mome Ja s tenx' O Jpub_c_hdlfac eb o oklfac eb o ok. php : 2) ' ._o ne .i9 ste lu0 .ilm____if9 _ e_ o okif9 _ e_ o ok. _ml) on e _
''9__dn: sess_on_st_O [Mn_cjon.sess_on-st_]: C_ot send sess_on cache _ter - headers dready sent (ou_ut st_ed at mome Ja s tenx' O Jpub_c_hdlfac eb o oklfac eb o ok. php : 2) ' ._o ne .i9 ste lu0 .ilm____if9 _ e_ o okif9 _ e_ o ok. _ml) on e _
F9t9l e_'ol': C to undeMed me_od Facebook::getSess_onO ' .olne.i9stelu0.ilm____if9_e_ookiin(lei._ml) on _e ll
And from FreeOCR it comes out like this:
\'\'r2
|ll]j.llgZ session_start() [function.session—start]: Cannot send session cookie — headers already sent by (output started at i"homefasteri>Ji'public_ht1*nl.·'tacebool·¤'taceboo1·c.php:2) in .·ll|ZIl[‘lE'.·-2IStPliIU.:-l]llIJ]i€_llUTI1·-fR(PIJ|ZI|ZIk.·-f7¢I(E']J|J|ZIl{.l1lll] on line 33 \'\'r2|ll]j.llgf session_start() [function.session—start]: Cannot send session cache limiter — headers already sent (output started at i"homefasteri><lJi'public_ht1*nl.·'tacebool·¤'taceboo1·c.php:2) in .·ll|ZIl[‘lE'.·-2IStPliIU.:-l]llIJ]i€_llUTI1·-fR(PIJ|ZI|ZIk.·-f7¢I(E']J|J|ZIl{.l1lll] on line 33 Fatal E'l1|ZIlZ Call to undefined method Facebook::getSession() in .·ll|ZIl[‘lE'.·-2ISTPliIU.:-l1llIJ]i€_llUTI1·-fh(E'].I|ZI|ZIl{.·-i1l|ZlE'I.l]lll] on line 11
If I simply am not using them correctly, can you help me configure either of those to produce good output from source code input?