Considerable factors to note in developing camera based motion sensor

I am researching on the various features and kinds of cameras embedded in phones and I would like to know what are the undeniable relevant facts that one has to consider in developing a camera based motion sensor for mobile phones most especially smartphones? What are the necessary cautioning to consider in operating this task? Albert Stranth is my name living in Kenya. Thank you.
