How i can detect a red or green laser pointer light (sourced from a webcam), return x/y coordinates of detected laser relative to webcam positions and highlight the detected laser strikes in a rectangle.
I am not sure if you got your answer but I had searched for very long and still did not find a way in Unity. For anyone who needs the same thing, the way I implemented it was to use python with openCV to detect the red laser then send coordinates to unity via UDP. Have a look in this kind of tutorial.
1 Like