Lego studs Some experiments using opencv2 to identify studs in images of lego bricks. Setup Python version is managed by pyenv. Setup a venv virtual environment. Install from requirements. pip install -r requirement.txt.