This tutorial will take you step-by-step through setting up your PC and Webcam to act as a motion-detecting and recording security camera system.本教程将带您一步一步通过建立您的PC和摄像头作为一种运动检测和记录的安全摄像系统。 And the software required to do this is open source (free).和软件要求的那样,这是开源(免费) 。
Why?为什么?
What?什么?
How?怎么会呢?
Advanced进阶 includes: Multiple Webcams, Sending pictures to a remote location (FTP), How to duct-tape the light off your webcam (super-stealth)包括:多摄像头,发送图片到远程位置(的FTP ) ,如何管磁带根据你的摄像头(超隐形)
Examples范例
Coming soon: How to do the same thing, with a Mac.即将推出:如何做同样的事情,用Mac 。
6 Reasons to set up a motion activated web-cam 6日的原因设立一个议案激活网络凸轮
- Maybe you live in a questionable (at best) part of East Vancouver and you’ve already been broken into (while you were doing the dishes).也许你生活在一个可疑的(最好)的一部分,东温哥华和您已经被打破到(当你做的菜) 。 It would be helpful next time to have pictures of the intruder.这将有助于下一次有照片的入侵者。
- Maybe you’re trying to prove to your landlord that some of the more questionable members of the general East Vancouver public are using the pathway between your building and the one next door as a shortcut between streets.也许您试图证明你的房东,一些更值得怀疑的成员一般东温哥华公共使用的是通路之间的建设和一个隔壁的一条捷径之间的街道。 Often with very large bags of cans (it’sa Vancouver thing).往往非常大袋罐(这是温哥华的事) 。 Loudly.大声。 At all hours of the day and night.在所有小时的昼夜。
- Perhaps you want to catch someone using your PC after you’ve asked them repeatedly not to use it (because they seem to go out of their way to install spyware, toolbars you don’t want, and leave behind Britney Spears mp3s on your desktop)也许你想赶上有人使用你的电脑后,您一再要求他们不要使用它(因为他们似乎走出去的方式安装间谍软件,工具栏你不想,并留下布兰妮的MP3在您的桌面上)
- You’re bored?你无聊吗?
- You want to get pictures of the pretty birdies eating from your new bird feeder.如果您想要得到的照片,美丽的小鸟从您的饮食新的禽流接驳。
- Yeah I know what you were expecting here, that’s lewd.是啊我知道你预计在这里,这是猥亵。 Get your mind out of the gutter, this is a family site.让您记住了的排水沟,这是一个家庭的网站。
For this tutorial you’ll need:对于本教程,您需要:
- a PC running Windows 98, ME, 2000, XP (the software is untested on Windows 95 and NT, but should work)一台PC运行Windows 98 , ME的, 2000年, XP的(该软件是检验在Windows 95和NT ,但应工作)
- a webcam (or two, see advanced)摄像头(或两个,见先进)
- Dorgem - an open source (free) webcam utility. Update: Though Dorgem has been discontinued, the download links still work, as does the software . -一个开放源码(免费)摄像头实用工具。更新:虽 然D orgem已经停止出售,下载链接的工作仍然一样,该软件。 The author will not be updating it anymore, and won’t be answering email support questions. 作者将不会再更新,并不会回答问题的电子邮件支持。
To upload images ‘off-site’ (in case someone steals your computer) you’ll need an FTP account.上传图片'异地' (如果有人抢断您的电脑) ,您需要FTP帐户。 See the见 Advanced进阶 section when you’re done the initial setup.节当你做了最初的设置。
- Install (if it isn’t already) your webcam.安装(如果它尚未) ,您的摄像头。 If you’re pulling one out of the closet and have long since lost the install CD, here are links to download the drivers for some of the most common webcam vendors:如果你拉一个出柜,并早已失去了安装光盘,这里有链接,下载的驱动程序的一些最常见的摄像头厂商:
- Download and install下载并安装 Dorgem . 。 The installation is very straight forward, you’ll mostly click Next a bunch of times.安装是非常简单的,您是单击下一步一群倍。
- Launch Dorgem and select your Webcam from the Camera selection drop-down list.发射Dorgem并选择您的摄像头的相机选择下拉列表。
- Click the Preview button to display the view your webcam has. 点击预览按钮,以显示查看您的摄像头了。 Physically adjust the camera to face the area you want to monitor.身体调整相机领域面临着要监视。
- Click the Source button and make any adjustments to the Brightness , Contrast and/or other settings.按一下按钮和来源作任何调整亮度,对比度和/或其他设置。 Click OK when you’re happy with the results. 单击确定当您满意的结果。
- Click the Options button按一下选项按钮
- Place a check in the box labeled Use motion detection .建立一个检查框使用运动检测 。 Certain Webcams (most often Labtec) can require Dorgem to “reconnect” after a certain period of no motion being detected.某些摄像头(最常见的蓝铂)可以要求Dorgem的“重新”在一定时期后没有被发现的议案。 For now leave this box unchecked.现在离开这个方块听之任之。 If you notice that your Webcam isn’t capturing any images even though it should have, revisit this section and place a check in the box.如果您发现您的摄像头没有任何图像捕捉,即使它应该有,重温这一节和地点进行检查的方块。 It should be noted that if you do need to use this setting, your cam will likely take a picture every time Dorgem “reconnects” to it, so try using 5 minute (or higher) intervals.应该指出的是,如果您确实需要使用此设置,您的凸轮可能会采取的图片每次Dorgem “重新”的,所以尝试使用5分钟(或更高)的间隔。 Otherwise you’ll end out with a LOT of pictures, most of which won’t have captured actual “motion”.否则你会为此进行了大量的图片,其中大部分将不会抓获实际“议案” 。
- Click OK after you have enabled motion detection to return to the main Dorgem window. 单击确定后,您已经启用运动检测返回到主Dorgem窗口。 Now you’ll need to create a ‘profile’ - which Dorgem refers to as Storage events .现在,您将需要建立一个'档案' -它提到D orgem作为存储事件。 Click the Store settings button to create an event.按一下按钮存储设置创建活动。
- Choose File and click OK (adding an FTP event is covered in the 选择文件,然后单击确定(添加一个FTP活动是包括在 Advanced进阶 section, set a local file first to make sure everything works)部分,设置本地文件第一次,以确保所有工程)
- Enter a Name: for this event, make sure Enable is checked, and then set an interval.输入一个名称:这项活动,请务必启用检查,然后设定一个时间间隔。 Since you’ll be using motion detection, you probably want to capture images fairly “closely together” - so try 1 or 2 seconds.既然你会使用运动检测,你可能想捕捉的图像公平“密切合作” -尝试1或2秒。 If you know for certain that this camera will detect a lot of motion (your camera faces an area with a lot of movement) you may want to set this somewhat higher.如果你知道的肯定,这台相机将检测了很多议案(您的相机所面临的地区,大量的运动) ,您可能要设置这个更高一些。 This setting can always be changed later, so experiment a bit.此设置可以随时更改,所以有些实验。 Click the … button next to Filename:点击...按钮,旁边的文件名:
- Here you’ll be setting the folder to save images to, and the actual filename for each image.在这里,您可以将设置的文件夹保存的图像,实际文件名的每个形象。 Dorgem allows special characters in file names so that each name is unique (otherwise each time your camera detected motion it would take a picture and over-write the previous one). Dorgem可以在特殊字符的文件名,使每一个名字是独一无二的(否则每次你的相机检测议案,将采取图片和写上一个) 。 Somewhere in the file name, enter the characters %g - which will give your file name a time-stamp.某处的文件名,输入字符%克-这将给您的文件名称的时间邮票。 If you use %G in the file name, it will also add the current year.如果您使用% G在档案名称,它也将增加本年度的。
Because my camera is taking pictures of movement on my patio, I named the file patio-camera%G%g .因为我的相机拍照的运动对我的院子,我的文件名为天井相机% G %克 。 This results with images being saved as patio-camera20060926165001.jpg.此结果与图像被保存为天井, camera20060926165001.jpg 。 Broken down that’s patio-camera - the current year - the current month, day, hour, minute and second.细分这天井相机-本年度-当前月,日,小时,分钟和秒。 Click Save after you’ve selected a folder and file name. 点击保存后,您所选择的文件夹和文件名。
- Click OK 单击确定
- Click Close to return to the main Dorgem widow 单击关闭以返回到主Dorgem寡妇
- Wave your hand in front of the camera.波你的手在前面的摄像头。 Or throw something within its view.扔东西或在其观点。 Jump around in front of it like an idiot.跳转围绕在前面的像白痴。 If everything was set correctly, you should now have some images in the folder you specified.如果一切都设定正确,你现在应该有一些图片文件夹中指定。 Go take a look..去看看..
- If it didn’t work, start again at step 3 and double-check everything.如果它不工作,重新开始在第3步,并仔细检查一切。 The built-in Help file included with Dorgem is actually pretty helpful - use it for troubleshooting.内置的帮助文件中包含的Dorgem实际上是非常有用的-利用它来解决问题。 Feel free to leave a comment below and include as much info as possible and I’ll try to help as well.欢迎发表评论如下,包括了信息并尽可能我会尽力帮助的。




Multiple Webcams 多摄像头
If you can get more than one Webcam to work in Windows (not always an easy task, esp. if they’re Labtec), Dorgem can support them all.如果你能超过摄像头的工作在Windows (并不总是一件容易的事,尤其。如果他们蓝铂) , Dorgem可以支持他们所有人。 You don’t need to install another copy of Dorgem, but you do need to start each instance differently.您不必安装另一个副本Dorgem ,但您确实需要启动每个实例不同。 To do so, follow the steps below..为了做到这一点,按照下列步骤..
- Right-click on your current Dorgem desktop icon and select Create Shortcut右击您当前Dorgem桌面图标,并选择创建快捷方式
- You should see a new Dorgem (2) icon on your desktop - right-click on it this time, and choose Properties你应该看到一个新的Dorgem ( 2 )图标,在您的桌面-右键点击这一次,并选择属性
- Make sure the Shortcut tab is selected, and change the Target: to:请务必快捷方式选项卡被选中,并改变目标:到:
“C:\Program Files\Dorgem\Dorgem.exe” /c:cam2的“ C : \ Program Files文件\ Dorgem \ Dorgem.exe ” /炭: cam2
If you installed Dorgem to somewhere other than the default location, make the appropriate changes.如果您安装Dorgem的地方以外的预设位置,进行相应的更改。
- Click Apply and then 单击应用,然后
to return to your desktop.回到您的桌面上。 Double-click the Dorgem (2) icon.双击Dorgem ( 2 )图标。 When it launches, notice that it’s titled Dorgem (cam2) .当它发射的通知,它的标题Dorgem ( cam2 ) 。 Repeat the same steps you did for the first camera (though choose a different file name to save the image as).重复同样的步骤,你的第一相机(虽然选择不同的文件名保存形象) 。
Sending pictures to a remote location (FTP) 发送图片到远程位置(的FTP )
If you’re using this as a personal security system for your residence, you may want to store the files off-site, in case someone steals your computer (rendering your security totally useless).如果您使用的是这是一个个人安全系统为您的居住地,您可能要储存的档案场外,以防有人抢断您的计算机(使您的安全完全无用的) 。 To do so, follow these steps..为了做到这一点,请按照下列步骤操作.. (note: you’ll need an FTP account - check to see if your ISP provides one for you, eg. Personal Web Space/storage). (注:您需要FTP帐户-查看如果您的I SP提供了一个为你,例如。个人网页空间/存储) 。
- Click the Store settings button and then click Add .按一下店铺的设置按钮,然后单击添加。
- This time select FTP and then click OK这一次选择的FTP ,然后单击确定
- Enter in the required information.输入所需资料。 The file name can use special characters (see step 11 in the first How part of this tutorial).档案名称可以使用特殊字符(见第11步的第一部分如何本教程) 。 You may have to experiment with some of these settings.您可能必须尝试一些这些设置。 For example, I have to use Passive mode because of the way my home network is set up.举例来说,我必须使用被动模式 ,因为这样我的家庭网络设置。 You may not.您可能没有。 Click OK when all of the required info has been entered. 单击确定时,所有必要的信息已输入。
- Wave your hand in front of the webcam (or throw something through its field of view).波你的手在前面的摄像头(或扔掉的东西通过其外地的观点) 。 Check your FTP site and you should see a new file (or files) there. Note: when I have both save to my local hard drive and save to FTP enabled, only one works.检查您的FTP站点,您应该看到一个新的文件(或文件)存在。 注:当我都保存到我的本地硬盘驱动器和储存到FTP启用,只有一个工程。 You may need to disable the local copy if you want FTP to work.您可能需要关闭的本地副本如果你想的FTP工作。 If you figure out a way for both to work, by all means let me know.如果你想出办法都工作,用一切手段让我知道。

How to duct tape the light off your webcam (super-stealth) 如何胶带根据你的摄像头(超隐形)
- Does your webcam have an annoying light that gives away its location when you try to hide it?请问您的摄像头有一个恼人的光线赠送其位置当您试图隐藏什么?
- Find some duct tape that matches the colour of your camera.找到了一些胶带相匹配的颜色你的相机。 Or, masking tape and a marker.或者,用胶带和一个标志。
- Place tape over the light.磁带发生了光。
- Your camera will now blend in like a ninja.您的相机现在将融入像一个忍者。 Extra bonus: use the duct tape to hold your hidden camera in place.额外的好处:使用胶带举行的隐藏摄像机到位。



Examples (from the first day I set this up) 范例 (从第一天我提出这一问题)
Yes, birds will trigger the motion sensing webcam.是的,鸟儿将触发的动作感应摄像头。


Seriously, this isn’ta shortcut for you to use.严重的是,这不是捷径供您使用。


How patio furniture gets stolen.如何获得户外家具被盗。


I don’t care if you’re practicing your tight-rope walking, stop using this area as a shortcut.我不在乎如果你搞你的紧绳行走,停止使用这一领域的一条捷径。



You too.你也。




My webcam lets me know when not to open my blinds.我的摄像头让我知道什么时候不要打开我的窗帘。 AKA get an unrequested view of some carpenters crotch.抗体收到不明来历的一些人认为木匠裆。

– -
Update 9/29/06:更新9/29/06 :
Just a quick note of thanks to those who linked to this tutorial, offered constructive criticism and suggested other alternatives.只是一个快速注意到感谢那些谁联系本教程,提供建设性的批评和建议的其他办法。
It blew my mind to see this tutorial featured on它引爆我心中看到这一功能的教程 Lifehacker , one of my favorite web sites.之一,我最喜爱的网站。




















{ 70 trackbacks } ( 70 )搬场
{ 230 comments… read them below or ( 230评论...阅读低于或 add one添加一个 } )
Logitech Imagestudio is another alternative if you have a logitech camera.罗技Imagestudio是另一种选择如果您有一个罗技摄像头。 It also does nice things like stop-motion, etc.它也很好像停止运动,等等
Xitanto - you’re right. Xitanto -你说得对。 I’ll update this in a bit, a couple of webcam vendors do include software similar to this.我会更新这一点,一对夫妇的摄像头厂商包括软件与此类似。 I *think* Creative Labs does too.一*想*创新实验室并不太多。
Just read your “6 Reasons..for a web….etc.”刚才宣读的“ 6原因..一个网页... 。等等”
GREAT!!!!太棒了! ! Yes, your literary style is entertaining!是的,您的文学风格是娱乐!
Nice….gonna try this out right now!尼斯... 。要去尝试了这一点现在!
hi great stuff, is a very good start for a very low cost security camera system.高科技伟大的东西,是一个非常好的开端非常低的成本安全摄像系统。 Maybe just a suggestion, can keep adding others recording software in for alternative and those can record mpeg or mpeg4.也许只是一个建议,可以随时添加其他刻录软件中的替代和可记录的MPEG或MPEG4影片。
Thanks.谢谢。
Lam - for sure.蓝田-是肯定的。 As Xitanto mentioned, Logitech Imagestudio has similar features.作为Xitanto提到,罗技Imagestudio也有类似的功能。 I’m pretty sure that some of the d-link webcams come packaged w/ another app that does the same.我敢肯定,一些的D -连接网络摄像机来包装水/另一个应用程序,不一样的。 Mine was OEM and didn’t come w/ any software (other than a windows driver).煤矿是OEM和没有来瓦特/任何软件(除Windows驱动程序) 。
Can this capture video clips instead of snapshots until it doesn’t detect motion?这可以捕获视频剪辑而不是快照,直到它无法检测的议案? is there a way to set the sensitivity?是否有办法设定的敏感性?
I know Creative has some software that does that.我知道有一些创新软件,能做到这一点。 I set it up pointed at my bed one night, it started recording once there was enough light in the room.我指出它在我的床上一个晚上,开始录制一次有足够的光在会议室。 Woke up with about 60 short video clips that I then stitched together, man, I toss and turn a lot!醒来时约60短片,我然后缝合在一起,男人,我抛,把很多!
“is there a way to set the sensitivity?” “是有办法的敏感性一套? ”
Would be very sweet if this was implemented!!!将是非常甜蜜,如果这是执行!
Anyways I was wondering if this will work as a service (I know there is some way to make any software run as a service but I forget how to反正我想知道,这将作为一种服务(我知道有一些方法,使运行的任何软件作为一种服务,但我忘记如何
) )
If not, that would be one nice feature, that way I can log off the current user and the application still will work (at least the app I have been using for security requires the user to stay logged on)如果不是,那将是一个好功能,这样我可以注销当前用户和应用仍将工作(至少在应用我一直使用的安全要求用户登录的住宿)
Anyways keep up the good work, oh, and adding uploading would (not sure, maybe you have this) be the best… imagine someone steals your PC, at least u can go to an FTP or email and get some evidence!!!反正保持良好的工作,噢,并增加上传会(不知道,也许你本)是最好的...想象抄截某人您的PC ,至少在德国可以去一个FTP或电子邮件,并得到一些证据!
Does anyone know HowTo build an optical zoom for a webcam?有谁知道如何建立一个光学变焦的摄像头? In combination with this great HowTo there would be even more usage scenarios.结合这一伟大如何会有更使用情况。
Nice app.尼斯应用。
http://members.tripod.com/acls2001
Here’sa handy linux equivalent - even shows you the pixels that trigger it.这里方便的Linux相当于-即使您显示像素触发它。 Found it while dealing with a nutjob that was stuffing mail boxes with incindiary flyers in our neighborhood.同时发现,处理nutjob这是馅邮箱与incindiary传单在我们的邻居。 You’ve gotta love America Suburbia.你总得喜欢美国郊区。 Ugh.啊呀。
Link:链接:
http://gspy.sourceforge.net/
Works wonderfully.工程奇妙。 Thanks for the tut.谢谢您的法老。
Any ideas why, when I use FTP to store the file, “.temp” is appended to the filename.任何想法,为什么当我使用FTP来存储文件, “ 。气温”是附加到文件名。