Brick detection