1 | initial version |
Everything you need is here: replace face by pen and eyes by phone. You could also try Local Binary Patterns which are faster and maybe easiest to train... Nevertheless, you need many true positive of your objects and false positive (images of everything that are neither pen or phone). You could also try Machine Learning algorithms included in OpenCV here, but you always need many images of your objects.