CrackRobotics

Seeing with a Camera, step 2

Finding balls by colour

Turn an image into masks with numpy, then locate each ball as the centroid of its pixels.

Colour thresholdsMasksCentroids

This step is part of CrackRobotics Pro

Pick & Place and the first step of every other lesson are free. Pro unlocks every other step for $39 a month, and you can cancel anytime.