473,394 Members | 1,746 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Webcam - need a solution

MZ
Hello,
I have a webcam connected to the Internet.
I can access the current static picture of the camera using an url link. It
shows the picture with high resolution 1600x1200.

I would like to have a batch program which will do what follows every some
amount of time:
1. save the picture automatically on my local computer (which will be always
running)
2. lower the resolution of the saved picture
3. store it on the FTP in a particular folder.

Is it possible at all?

BR
Mike
Aug 1 '08 #1
7 1817

MZ schreef:
Hello,
I have a webcam connected to the Internet.
I can access the current static picture of the camera using an url link. It
shows the picture with high resolution 1600x1200.

I would like to have a batch program which will do what follows every some
amount of time:
1. save the picture automatically on my local computer (which will be always
running)
2. lower the resolution of the saved picture
3. store it on the FTP in a particular folder.

Is it possible at all?

BR
Mike

Surely that is possible, but Clientside JavaScript is a poor choice as
language for such a task.
Try a serverside solution, eg PHP, Perl, Java, Python, etc.
(Well, you can even use JavaScript as serverside language.)
Serverside makes things a lot easier for you: eg having libs at hand
that resample the picture.

Regards,
Erwin Moller
--
============================
Erwin Moller
Now dropping all postings from googlegroups.
Why? http://improve-usenet.org/
============================
Aug 1 '08 #2
MZ wrote:
[...]
I would like to have a batch program which will do what follows every some
amount of time:
1. save the picture automatically on my local computer (which will be always
running)
2. lower the resolution of the saved picture
3. store it on the FTP in a particular folder.

Is it possible at all?
It is certainly possible, but an ECMAScript implementation would not be my
first choice of language for doing it.
PointedEars
--
Anyone who slaps a 'this page is best viewed with Browser X' label on
a Web page appears to be yearning for the bad old days, before the Web,
when you had very little chance of reading a document written on another
computer, another word processor, or another network. -- Tim Berners-Lee
Aug 1 '08 #3
MZ
>>
>
Surely that is possible, but Clientside JavaScript is a poor choice as
language for such a task.
Try a serverside solution, eg PHP, Perl, Java, Python, etc.
(Well, you can even use JavaScript as serverside language.)
Serverside makes things a lot easier for you: eg having libs at hand that
resample the picture.

Regards,
Erwin Moller
Javascript on the serverside means I can do it on the webpage? Would be
great!
Could you point me out some functions in javascript so I can get the idea
how to do it?

Thanks in advance
BR
Mike
Aug 1 '08 #4

MZ schreef:
>Surely that is possible, but Clientside JavaScript is a poor choice as
language for such a task.
Try a serverside solution, eg PHP, Perl, Java, Python, etc.
(Well, you can even use JavaScript as serverside language.)
Serverside makes things a lot easier for you: eg having libs at hand that
resample the picture.

Regards,
Erwin Moller

Javascript on the serverside means I can do it on the webpage? Would be
great!
Hi,

I am not sure we understand each other.
I advised you to use a serverside language for the task (which COULD be
JavaScript, but this is really rare. PHP makes much more sense and
hosting is easy found.)

What you mean by using it on the webpage is not clear to me.
EVERYTHING on your webpage comes from a server (unless you are browsing
local files).

Could you point me out some functions in javascript so I can get the idea
how to do it?
I wouldn't advise you to use Javascript for this task.
You must learn a serverside language.

Hope this is clearer now. ;-)

Regards,
Erwin Moller
>
Thanks in advance
BR
Mike


--
============================
Erwin Moller
Now dropping all postings from googlegroups.
Why? http://improve-usenet.org/
============================
Aug 1 '08 #5
MZ
Hope this is clearer now. ;-)
>
Regards,
Erwin Moller
Yes, it is clear now.
I don't like PHP so I was googling for a solution in javascript.
I would like to have a script which will dynamically create the gallery html
file when the file is opened.
And I have found a prety simple solution.
Please take a look at
http://www.softpedia.com/get/Interne...-Gallery.shtml
JavaScript gallery by Consoriana.
It enumerates the small thumbnail files put it into a table with hyperlinks
to the bigger files and gives you a nice gallery preview with next/previous
in each folder.
This is more or less what I am looking for and it works great!

However I need to modify it a bit.
Can you advise me what to change so I do not need to be dependent of the
file names?
I would like to store a different filenames in folders and I would like to
make it as universal as I can.

I think if we figure out a solution it can be usefull not only for me.
So any help apreciated!

BR
Mike
Aug 6 '08 #6
MZ wrote:
I don't like PHP so I was googling for a solution in javascript.
You did not made a reasonable design decision. While there is no
"javascript" to begin with, chances are much greater that server-side PHP is
supported than that client-side JS and the host-provided interfaces it
relies on is. And ECMAScript implementations like JavaScript or JScript can
also be used server-side. (PHP can also be used client-side, but chances
are low that it is supported in a HTML UA.)
I would like to have a script which will dynamically create the gallery html
file when the file is opened.
Server-side PHP can accomplish this.
And I have found a prety simple solution.
But of course not a good one.
Please take a look at
http://www.softpedia.com/get/Interne...-Gallery.shtml
JavaScript gallery by Consoriana.
[x] done

Especially "No scripting language needed such as PHP and ASP" is hilarious.
What do they think JS are anyway? Markup languages?
[...]
This is more or less what I am looking for and it works great!
You are in no position to assess the quality of this code. However, in this
case neither am I, because all attempts to download it result in a broken
ZIP archive that contains only images and no script files. (And no, I did
not use a download manager and I tried both download locations.)
However I need to modify it a bit.
Can you advise me what to change so I do not need to be dependent of the
file names?
You do not expect anyone knowledgeable here to wade through this code in
their free time for free, even if it was possible, do you? RTFM or ask the
author instead; or get a minimum clue, stop using it, and start using better
code (maybe your own).
I would like to store a different filenames in folders and I would like to
make it as universal as I can.
Good luck.
I think if we figure out a solution it can be usefull not only for me.
You mean there is anyone knowledgeable here appreciating this supposed
reinvention of Wheel 0.7.5 (unstable), given the available alternatives?
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Aug 6 '08 #7
Thomas 'PointedEars' Lahn wrote:
MZ wrote:
>Please take a look at
http://www.softpedia.com/get/Interne...-Gallery.shtml
JavaScript gallery by Consoriana.

[x] done

Especially "No scripting language needed such as PHP and ASP" is hilarious.
What do they think JS are anyway? Markup languages?
>[...]
This is more or less what I am looking for and it works great!

You are in no position to assess the quality of this code. However, in this
case neither am I, because all attempts to download it result in a broken
ZIP archive that contains only images and no script files. (And no, I did
not use a download manager and I tried both download locations.)
Finally, the download worked. A strange thing, though. However, my
suspicions about this script have been confirmed. It is junk, for several
reasons, the least of which are undeclared variables all over the place.
PointedEars
--
realism: HTML 4.01 Strict
evangelism: XHTML 1.0 Strict
madness: XHTML 1.1 as application/xhtml+xml
-- Bjoern Hoehrmann
Aug 6 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Joakim Rylander | last post by:
Hi all, I need to create a public booth where people can look at themselves in a webcam and snap a picture which will be seen on a webpage. The backend is easy, it's the webcam part that I have...
0
by: Elp | last post by:
Hi, We have developped an client application in C#. Among other things, this application should display in 4 different windows (or 4 different panels in the same window), 4 webcam streams (web...
0
by: Steve | last post by:
Hi Can anyone please tell me how to use a webcam on a form. I have done an app that uses a webcam, but I have used the drivers for that webcam. Now I need to use a different camera on a...
10
by: aceto | last post by:
Hi. I'm sorry for my bad english, but it's not my motherlanguage. I need to read data from a webcam and display the images on DOS . So, how can i show this images? i have to translate the data...
1
by: Mamatha | last post by:
Hi, I have a video capturing with motion detection application in C#.NET.In that application i detected all resources i.e video source and audion source thourgh motion detection,now i want to...
2
by: =?Utf-8?B?d29vZHliZWFy?= | last post by:
I just bought a new Dell, so I'm sorry if this is a stupid question. There is a built-in webcam. Im using the disc provided by Dell (Dell Webcam Software), however during the installation, a...
1
by: Fleets422 | last post by:
Hi, new kid on the block... Hope I am posting this in the proper forum as it involves HTML, JAVA as well as PHP. A little background... I have been writing PC apps using Borland's C++ Builder for...
5
by: frakie | last post by:
Hi there, I need a simple and stupid few line source code to access my webcam. I found lots of huge projects (c++ c and other) which are so big that they are impossible to be used. Does somebody...
2
by: Craig | last post by:
We are trying to create an inhouse ID card system. What we would like to do is to have a webcam feed displayed in a webpage and for a user to be able to click a button to save the currently...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.