Page 1 of 1

web cam saving foto

Posted: Tue Nov 23, 2004 9:26 am
by kanaps
How can I connect web cam to the HTML/PHP page, make a photo and save it in the folder at server or anywhere?

Thank you for your help.
Kanaps

Posted: Tue Nov 23, 2004 11:02 am
by djot
-
Hi,

You don't really want to code this? Perhaps you should search for some webcam software (freeware available also), that does the job for you and at least transfers the files to a ./webcam/ -folder. Rest could be done with php than easily.

djot
-

Posted: Tue Nov 23, 2004 11:13 am
by kanaps
yes, but it is a problem if I am doing the code for customer registration. So it will be difficult for customers to use different programm and than come back on HTML/PHP pages for assigning it to created customer.

But can you tell me any name of the programm that will be saving foto in preset directory.
Thank you,
Kanaps

Posted: Tue Nov 23, 2004 11:30 am
by djot
-
Hi,

can't tell you names of programs, but I know there are many. So just google a bit.

And how do you think you can get webcam images form your customers webcam/PCs? And how should this work with server side php? Even with client side "whatever" you can't get the images.

djot
-

Posted: Tue Nov 23, 2004 11:41 am
by kanaps
it will be running on local host only. So when client registers, they get to point where img from web cam will be done and saved... the question is how can I have web interfase that when person presses FOTO that img that on the screen saves to JPG. IS theres a way of doing PRINT SCREEN over the web code?

Posted: Tue Nov 23, 2004 11:44 am
by djot
-
So you have to search software that acts as a server on your local (webcam) system, and provides an web-interface (via whatever, java?).

djot
-

Posted: Tue Nov 23, 2004 3:45 pm
by kanaps
yes, but they will not give me bit of code or it will not be in help file.. what i mean is event if I will be ablo to run web cum server.. it will be in separete page. Question is how will I be able to connect to my page? orjpg foto?

Posted: Tue Nov 23, 2004 4:24 pm
by John Cartwright
This is not a PHP issue. It is most likely possible to do what you are asking but will require apache+PHP to be installed on the users server, which is inneficient way to accomplish your task.

You are going to need to use some sort of client side scripting language.

Posted: Tue Nov 23, 2004 4:30 pm
by kanaps
YEE that is FINE!! I only need it for LOCAL computers which will be installed for CUSTOMERS REGISTRATION. They will have a touch screen and webcam which supposed to make the foto and save it in database.

So I am talking about local host which will be setup to run exact PHP pages.

Posted: Tue Nov 23, 2004 4:47 pm
by John Cartwright
PHP is definantly not a very good choice for this project, except for maybe inserting the actual pictures/info into the database. Look at how other programs/applications handle it and maybe it will give you an idea.

We arn't here to give you code, but instead hint you towards your goal.
Seems to me you arn't trying anything for yourself.

Posted: Tue Nov 23, 2004 4:56 pm
by kanaps
The answer I am trying to find is if someone can point me to something like: you will need to use +commsd . look in php for more info.. that would help. becouse right now I have no idea where to look and Iguess that is I am here.

Posted: Tue Nov 23, 2004 5:17 pm
by m3mn0n
PHP has the ability to connect to the Windows API so anything that is possible with the API, can be done via PHP. And since the webcam is connected via a plug-n-play device (USB) to Windows, it might be possible using the API.

I'd recommend for you to read up at Microsoft's API resource site to see if there is a function that can connect to a USB device and capture the image.

If you cannot find anything, then I suggest searching for a program that can capture images (or even using one that came with the camera) and just extracting images from the folder where it places the captured pictures.

Hope this helps.