interfacing of computer software through arduino

hello everyone..
i am doing home security project and in that i need your help.what i wants is i want to use laptop camera to capture picture when the arduino send signal. and then i want to access that captured picture on my smart phone.
i want to know how i can capture pic using laptop camera and send that pic to smart phone. what will be function,syntax.
plz help me .. its been long i got stuck in this problem.
thnk

Have you tried Processing?

It seems to me that you need a program running on your laptop that is listening for a message from the Arduino and when it gets the message it takes the picture and makes it available to your phone.

In other words this is almost entirely a PC application that could be designed and tested using, for example, a keypress to substitute for the Arduino during testing.

...R

yeah okay i agree but what type of coding required. i dont know function to send message from arduino to laptop and that laptop program code and how to send that pic to smart phone...
btw thnx for ur effort

Elitus:
yeah okay i agree but what type of coding required. i dont know function to send message from arduino to laptop and that laptop program code and how to send that pic to smart phone...

This is not the place to enquire about how to write a program on a PC. If you don't know how to do that then I suggest you take some time out to learn that before worrying about the link with the Arduino which will probably be a very small part of the whole project.

For communication with the Arduino these links may help - but first you to get the main part of your project working.
Python - Arduino demo
Serial Input Basics

And you can do what the Python program does in most PC programming languages.

...R