ruby - How to get value displayed in image created by Base64-encoded string? -


i have base64-encoded string used source of image element on website , need derive value said string. there tool allows information extracted image based on bits returned decoding base64 string? example here:

<img src="data:image/png;base64,ivborw0kggoaaaansuheugaaalqaaaarcayaaadr/akkaaabueleqvr42u3cw27eibafufa/abkcirj7+kfzrsqnflykgy3wwiiiiiiiiiiiiiiiiiiin7l/ukr7vnhdc/cm7n5rqgzw9gcoyomgcpexyi03uep6czof3ofd4fu4iheduf+phhhrhz8ykusf3gbudcefthw5hn7s7jf6gpvdlx1l/a1o9vsn7vl1w3+bybq6uj5udvcqou3fs7mejhahjwod3q5udvcqox0cm81tlzohcqlnaek3htwexo12lfvnk9c4jvtmf6gjdzlqe/zde4vqptitgjd18/8inlfoerrdwujc44zs+q86geto3fdtdtvlbs8h7hizm4w2620gt+uyg9c4r9vokhpurohkypatk5vqzudnqdtz5sj+mb6hcndq6s60t2bdur2erut7g9ew7u1cr8jzcdfhn2a3cr1wzyuvbsfumexo6pdk3ifch7omzxgkifxpaaaaaelftksuqmcc"> 

this returns image containing value 210000, need way, if possible return actual value.

if answer sort of ocr technology, advice on start, related embedding in ruby script, appreciated.

thanks in advance!

i have tried example tesseract, open ocr system, on ubuntu command line.

going base64 digits looked this:

$ base64 -d image.base64 | tesseract - - digits | sed -e 's/\ //g' output: 210000

i'm afraid don't know how integrate ruby, hope helps you.


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -