Google Blogoscoped

Forum

Cover Browser Labs  (View post)

Niraj Sanghvi [PersonRank 10]

Thursday, December 7, 2006
17 years ago3,712 views

That's very cool, and surprisingly accurate in many cases! Any chance you'll let us peek at the code? ;)

Sam Davyson [PersonRank 10]

17 years ago #

Yes – It is very clever however he has managed to do it. The matches are very close.

Philipp Lenssen [PersonRank 10]

17 years ago #

The code is quite simple. (In previous pattern matchers I always wrote trying to optimize speed, so I stored certain representations of the images for faster parsing. This time, I didn't feel I was at the point where this was necessary.) I hope the pic below explains...

http://blogoscoped.com/files/pattern-matching-algo.png

Niraj Sanghvi [PersonRank 10]

17 years ago #

Really interesting to see how that works behind-the-scenes, thanks! I've been meaning to learn some PHP image handling for a while now.

Forum home

Advertisement

 
Blog  |  Forum     more >> Archive | Feed | Google's blogs | About
Advertisement

 

This site unofficially covers Google™ and more with some rights reserved. Join our forum!