0

I am trying to develop an algorithm that can take an image, identify a physical pattern - eg stripes, squares, etc and the predominant colors in the pattern.

Ideally would like to do it in PHP, but will consider other languages.

tshepang
  • 11,360
  • 21
  • 88
  • 132
Ian JF
  • 11
  • 1
  • 5
  • 6
    PHP's not suited for this overall. You'd be better off with languages that provide better in-memory representations of images than what GD and Imagick provide. – Marc B Jan 25 '12 at 02:36
  • I'm no expert on this but look up Artificial Neural Networks for a *very* small step in the direction of what you need to do. And PHP wouldn't be fast enough for this. I hope I don't sound harsh but it sounds like you're out of your depth. – georgiecasey Jan 25 '12 at 03:14
  • Next to what have been written in comments, these questions are somewhat related: [Good way to identify similar images?](http://stackoverflow.com/q/2838775/367456) and [Recognize Patterns of images JPG or PNG](http://stackoverflow.com/q/3170160/367456) - I think there was another one for PHP specifically that is close to this one, please search around a bit, you might find better ones. – hakre Jan 25 '12 at 11:09
  • Can you elaborate on what you need? As others have said, if you really need to do exactly what you said, then you may be out of your depth. But if you can explain why you need this and your constraints, somebody might have a better solution for you. – KobeJohn Jan 25 '12 at 15:03

1 Answers1