One question about flash camera, object detection?

want to make a cam application. When user’s show the objects (sample is inthe attach ) Flash will play a video . How can i do this thanks…