Searching for repeat patterns with a camera