On Thursday, December 17, 2015 at 1:36:55 AM UTC+4, BartC wrote: > On 16/12/2015 17:17, fsn761...@gmail.com wrote: > > ...here is the bad image: http://wikisend.com/download/748118/saved.png > > > > This is 3000x600 pixels; what was the original size? (150x30?) > > What does the original look like? > > You need to test step by step to see at what point it goes wrong. You're > scaling by 20 (which is a massive amount); what happens when scaling by > 1? And anti-alias is turned off? (Which might let you see by how many > pixels each successive line is out and could give a clue.) > > It does seem as though something is going amiss with recognising the > image dimensions, or you've inadvertently applied a 'shear' or 'slant' > transformation. (Maybe you can apply a reverse transform to fix it!) > > -- > Bartc
Original size: 150x30 Original image the same, but without skew (usual upright letters). When scaling by less than 20 recognition quality is bad (in another code, which doesn't use buffer, screenshot, but loads image from a directory). Antialias makes no difference. Shear, slant - ok, show me how. -- https://mail.python.org/mailman/listinfo/python-list