From: Phlip Date: 2009-02-28T00:19:11+09:00 Subject: Re: Image/Pattern Recognition Serabe wrote: > Becky Franklin: >> I have a project I'm trying to work out the feasibility of being able to >> do - I want to process images that consist of a grid of squares >> containing symbols, and I want to be able to break down the grid so that >> the program can work out how many of each symbol there are and where it >> is on the grid. Not sure if this is something that's going to be do-able >> from what I've googled! Does RMagick or any of the gems have a possible >> solution to this? > > You can use get_pixels ( > http://www.imagemagick.org/RMagick/doc/image2.html#get_pixels ) for > getting pixels in a region and store_pixels for (yes, you guessed it) > store pixels in a image. That is as far from pattern recognition as atoms are from elephants! Becky needs to google for "chain code". I really doubt a Ruby implementation is available, because the algorithms to do it in less than polynomial time are secret. -- Phlip