Note: this is not my work, just something I stumbled across.<p>GitHub project is here, including examples of all angles considered:
<a href="https:&#x2F;&#x2F;github.com&#x2F;LasseD&#x2F;BrickCounting" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;LasseD&#x2F;BrickCounting</a>