# Extract floating point number from .png image

**URL:** <https://discourse.julialang.org/t/extract-floating-point-number-from-png-image/49436>\
**Category:** General Usage\
**Tags:** images\
**Created:** [November 2, 2020, 3:40am UTC](https://discourse.julialang.org/t/extract-floating-point-number-from-png-image/49436 "2020-11-02T03:40:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![colintbowers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/colintbowers/32/8033_2.png) [@colintbowers](https://discourse.julialang.org/u/colintbowers)\
**Post date:** [November 2, 2020, 3:40am UTC](https://discourse.julialang.org/t/extract-floating-point-number-from-png-image/49436/1 "2020-11-02T03:40:17Z")

</div>

Hi all,

I’ve got a .png file (actually lots of them) that contain lots of numbers that are expressed like floating points, e.g. “32.34”. I’d like to get those numbers. I’ve been reading the docs for [JuliaImages](https://juliaimages.org/stable/) and I suspect I might be able to hack something together that works for my specific use-case (the numbers are always stored in predictable locations in my images). Having said that, I know next-to-nothing about image manipulation and will probably do it very inefficiently.

So my question: are there any general tools for recognizing numbers (and, out of curiousity, letters) in images in Julia?

Cheers,

Colin

---

<div class="post-metadata">

**Author:** ![malacroi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/malacroi/32/19745_2.png) [@malacroi](https://discourse.julialang.org/u/malacroi)\
**Post date:** [November 2, 2020, 4:29am UTC](https://discourse.julialang.org/t/extract-floating-point-number-from-png-image/49436/2 "2020-11-02T04:29:33Z")

</div>

The OCR itself should probably be done with tesseract, for which there is a convenient wrapper package.  
[https://github.com/leferrad/OCReract.jl](https://github.com/leferrad/OCReract.jl)

---

<div class="post-metadata">

**Author:** ![colintbowers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/colintbowers/32/8033_2.png) [@colintbowers](https://discourse.julialang.org/u/colintbowers)\
**Post date:** [November 2, 2020, 5:03am UTC](https://discourse.julialang.org/t/extract-floating-point-number-from-png-image/49436/3 "2020-11-02T05:03:14Z")

</div>

Ha ha I had to google what OCR stood for which about sums up how much I know about this stuff. Anyway, thanks for the link, it looks spot on.

Cheers,

Colin
