I am currently working on a project assigned from our university, which involves detecting a pen. I am thinking of putting an ir LED on top of that pen, and try to detect with the help of a webcam, but i am stuck at how to filter the background in such a manner so that i could only see that LED. Thanks in advance.