# Image recognition

**URL:** <https://www.ruby-forum.com/t/image-recognition/159879>\
**Category:** Ruby\
**Created:** [February 9, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/image-recognition/159879 "2009-02-09T17:45:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vbarre](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/d9b06d/32.png) [@vbarre](https://www.ruby-forum.com/u/vbarre)\
**Post date:** [February 9, 2009, 5:45pm UTC](https://www.ruby-forum.com/t/image-recognition/159879/1 "2009-02-09T17:45:41Z")

</div>

Hello,

I need to write a software who read an image from a questionary, and  
recognize the options marked.  
Anyone knows any gem who has some function like it? I’m think about use  
rmagick.

Thanks,

Michel

---

<div class="post-metadata">

**Author:** ![vbarre](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/d9b06d/32.png) [@vbarre](https://www.ruby-forum.com/u/vbarre)\
**Post date:** [February 11, 2009, 6:07pm UTC](https://www.ruby-forum.com/t/image-recognition/159879/2 "2009-02-11T18:07:50Z")

</div>

On [Tue, 10.02.2009 01:44], Michel B. wrote:

> I need to write a software who read an image from a questionary, and  
> recognize the options marked.  
> Anyone knows any gem who has some function like it? I’m think about use rmagick.

My idea of a workflow would be as following:

- load the image
- crop to each question
- convert that extract to black/white
- create a histogramm
- count the number of black pixels.

Could be all done with RMagick
