Computer vision to create a light curtain