arduino + cmos camera

Hello,
I am working on a project for switching lights on/off with system that can recognize hand position. I need to take picture of different hand position and than based on images for example if hands are in vertical position lights will be switched on, and if hands are in horizontal position lights will be switched off.

This is my final project but I dont know a lot about arduino,so can someone help me with this?

Thanks

The Arduino is too slow and has too little memory to be useful for anything related to image processing.

The Raspberry Pi would be fine for such a project and there is a good quality camera module available for it.