tag:blogger.com,1999:blog-36854726245498403682024-02-18T21:13:09.454-08:00Zone Trigger Software - Webcam Motion DetectionJoe Jansonhttp://www.blogger.com/profile/15126450133551436795noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-3685472624549840368.post-19599975775298231292011-06-30T16:50:00.000-07:002011-06-30T17:04:16.533-07:00Making time lapse animations<div style="text-align: left;"><span class="Apple-style-span" style="font-family: arial; ">Step one is acquiring the images.</span></div><div><span class="Apple-style-span"><div>Easy: many <a href="http://www.zonetrigger.com/">webcam software have automatic picture scheduling</a>. In Webcam Zone Trigger, you need to go to the Video Settings tab, then click on the Camera Timer button.</div><div><br /></div></span><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqLA-hu0m3xbGusP134sPWzg6rzkLMeWx8DsbrKbvpXS6UB3Lxu0dmkJ2kVyPItCmOFpwtZiTV3G9JqAqWT3PJPkvKOCQX5pQxFwdWvw9wC0oji_1ye188zucwu0pD4ucvLtCx6jD1gYsu/s1600/image-lapse-timer.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhqLA-hu0m3xbGusP134sPWzg6rzkLMeWx8DsbrKbvpXS6UB3Lxu0dmkJ2kVyPItCmOFpwtZiTV3G9JqAqWT3PJPkvKOCQX5pQxFwdWvw9wC0oji_1ye188zucwu0pD4ucvLtCx6jD1gYsu/s400/image-lapse-timer.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5624165684611188466" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 232px; height: 141px; " /></a></div><div><div style="text-align: center;"><span class="Apple-style-span"><u><br /></u></span></div><span class="Apple-style-span" style="font-family: arial; ">Images will be round up in the save folder, and from there you can just select everything and drop them in a photo editing software. I use <a href="http://www.gimp.org/">Gimp</a>, which is free. In Gimp, Drag & Dropping a bunch of pictures will automatically distribute them on separate layers. You can then crop and resize the whole thing, and save them to the .gif format. You may be prompted to either flatten the layers to a single image, or produce an animation using each layer as a frame, choose animation.</span></div><div><span class="Apple-style-span"><br /></span><a href="http://www.zonetrigger.com/images/time-lapse-webcam.gif" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img src="http://www.zonetrigger.com/images/time-lapse-webcam.gif" border="0" alt="" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 180px; height: 176px; " /></a></div><div><div style="text-align: center;"><span class="Apple-style-span" style="font-family: arial; ">Simple eh? :-)</span></div><span class="Apple-style-span"><div><br /></div></span></div>Joe Jansonhttp://www.blogger.com/profile/15126450133551436795noreply@blogger.comtag:blogger.com,1999:blog-3685472624549840368.post-91164508929601839292011-06-10T00:12:00.000-07:002011-06-10T00:21:28.445-07:00Catching Lightning<div style="text-align: left;">Capturing images of lightning: not be super useful for everyday life, but it's hella cool.</div><div><br /></div><div>The weather man lied to me a few times last week, to my great despair, no thunderstorm had struck. But last evening I heard the loud pounding of the incoming lightning, so I ran to my office and setup a webcam to catch a few snapshots of the bolts.</div><div><br /></div><div>This requires a very simple setup. Just a <a href="http://www.zonetrigger.com/motion-detection">webcam and a motion detection software</a> (as always, Webcam Zone Trigger). Put a motion detection hot spot in the sky, large enough to cover a significant area, but no need to ever-do it. when lighting hits, the whole sky is affected. When the storm was done, I had 3 kinds of pictures:</div><div><br /></div><div style="text-align: center;"><b>Sparks</b></div><div><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnlXpBFZnG-Wql90lV8Nr-Bc2Fvu-ElmeeVXL2sUf_Mg4ZMteUG1e19YKqPaI9FYiqgeR-F1JsOEa7hhoQiieyeYWYkQw7zGmtG2eOPzqXrfjBdy2NBVfqh2XbIITj9fcC5_xneGe_X1up/s1600/lightning-bolt.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhnlXpBFZnG-Wql90lV8Nr-Bc2Fvu-ElmeeVXL2sUf_Mg4ZMteUG1e19YKqPaI9FYiqgeR-F1JsOEa7hhoQiieyeYWYkQw7zGmtG2eOPzqXrfjBdy2NBVfqh2XbIITj9fcC5_xneGe_X1up/s400/lightning-bolt.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5616486213855243778" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 312px; " /></a></div><div style="text-align: center;">Cloud-to-ground. Mostly what you would expect.</div><div><br /></div><div><br /></div><div style="text-align: center;"><b>Shiny clouds</b></div><div><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg545ayvzsv0pZmPxdkrrQjHLVa804gS9c7hyphenhyphen6W7xzk5DLfXr82smgewT-UsfWVcyB1WhFJuRWuzDZPK7RH-udQEOna85HHmBVgKw77svR_lSN0p1A3QGOQdJlz9uLTZiHge6Z80UUgQFPN/s1600/lightning-cloud-to-cloud.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg545ayvzsv0pZmPxdkrrQjHLVa804gS9c7hyphenhyphen6W7xzk5DLfXr82smgewT-UsfWVcyB1WhFJuRWuzDZPK7RH-udQEOna85HHmBVgKw77svR_lSN0p1A3QGOQdJlz9uLTZiHge6Z80UUgQFPN/s400/lightning-cloud-to-cloud.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5616486463128697506" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 312px; " /></a></div><div style="text-align: center;">Cloud-to-cloud lightning, quite common, not as spectacular.</div><div><br /></div><div><br /></div><div style="text-align: center;"><b>Split images</b></div><div><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEig5fEEnOCCCgiigMmaAq0G2Vjk1TbrufmNVkCr9pNjIagOp2_E1zLTNz0uZXMQwbJmt6x6-2i6XO8er7jni_T9kKv_jsV3dGwZ8kkg6TwfioSzBjyT0LeayFSyHoFvUtIqZho3ryhLY7KI/s1600/lightning-artefact.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEig5fEEnOCCCgiigMmaAq0G2Vjk1TbrufmNVkCr9pNjIagOp2_E1zLTNz0uZXMQwbJmt6x6-2i6XO8er7jni_T9kKv_jsV3dGwZ8kkg6TwfioSzBjyT0LeayFSyHoFvUtIqZho3ryhLY7KI/s400/lightning-artefact.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5616486370040203490" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 312px; " /></a></div><div style="text-align: center;">An amusing artefact from the webcam.</div><div style="text-align: center;">Lighting strikes fast enough that the scene changes while</div><div style="text-align: center;">the webcam's sensor is acquiring an image.</div><div><br /></div><div><br /></div><div>When you compare image quality between a webcam and a reflex camera, webcams tend to lose pretty hard. Not as sharp, not as high resolution, not as fast, and a much lower range of colors. But this all balances because digital cameras can't do the same things as a webcam. If you wish to take pictures of lighting with a camera, you'll need to do set a long shutter time, release the shutter and gamble that you'll catch a bolt within the time it remains open. Then do it again, many times. With a webcam, setup the motion detection and enjoy the show, pictures guaranteed.</div><div><br /></div><div>Likely you'll keep the webcam indoors since they are usually not waterproof, make sure it is set in a dark room with no reflections on the window. Don't forget that most webcams have an on-board light that can reflect in the window.</div><div><br /></div><div>Next time there is a thunder storm, become a <a href="http://en.wikipedia.org/wiki/Lightning">fulminologist </a>and snap a few shots.</div><div><br /></div>Joe Jansonhttp://www.blogger.com/profile/15126450133551436795noreply@blogger.comtag:blogger.com,1999:blog-3685472624549840368.post-41067247963580368572011-05-23T02:11:00.000-07:002011-05-23T03:11:31.394-07:00How to setup a webcam on your website<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_VRj__ijhECzR-ZOVxQRr6zTxmZRanfF0zlKwtfS2QVZm464weibnCA5ZIlEJx2B7HphuAH6jZ4J5vlW8LoBiJWNOV1r5ZvUjBycmtlRvQrbCvyazUzRDPkpCJS1O36AoL51MyPekaeCF/s1600/webcam-website.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><span class="Apple-style-span"><img alt="Setup a webcam on a website" style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 320px; height: 319px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_VRj__ijhECzR-ZOVxQRr6zTxmZRanfF0zlKwtfS2QVZm464weibnCA5ZIlEJx2B7HphuAH6jZ4J5vlW8LoBiJWNOV1r5ZvUjBycmtlRvQrbCvyazUzRDPkpCJS1O36AoL51MyPekaeCF/s320/webcam-website.jpg" border="0" id="BLOGGER_PHOTO_ID_5609843171501786482" /></span></a><div><span class="Apple-style-span" style="font-family: arial; font-size: medium; ">In 1991, the computer sciences nerds at Cambridge University where tired of walking 2 floors up to the cafeteria and finding and empty coffee pot. They interfaced a camera to a computer on the network, this way they could remotely check the status of the coffee pot. The first webcam was born.</span></div><div><span class="Apple-style-span" style="font-family: arial; font-size: medium; "><br /></span></div><div><span class="Apple-style-span" style="orphans: 2; text-indent: 0px; widows: 2; "><div><div style="font-family: arial; ">It's so easy to put a webcam online today, on any type of website. You may want to setup a webcam to stream the video online in the following scenarios:</div><div style="font-family: arial; "><ul><li>There is something worth seeing on your backyard.</li><li>You want to keep an eye on a child or a pet.</li><li>You are running a really cool experiment, the whole world should be interested.</li><li>Traffic cam, security cam...</li></ul></div><div style="font-family: arial; "><br /></div><div style="font-family: arial; ">First setup the webcam to capture the video you need.</div><div style="font-family: arial; "><ol><li>Connect the webcam to a computer running a video capture & http server software, such as Zone Trigger software.</li><li>In Zone Trigger, connect to the camera, go in the setting and activate the HTTP server mode.</li><li>If you have a firewall at home, you might need to configure it so that it forwards the http port for incoming connections. If this step isn't very clear for you, please check out this <a href="http://www.zonetrigger.com/articles/home_web_server/How_to_setup_a_http_server.php">guide to setup a home web server</a>.</li></ol></div><div style="font-family: arial; "><br /></div><div style="font-family: arial; ">That's it! Now you can connect directly to your computer, from anywhere on the Internet, using any web browser.</div><div style="font-family: arial; "><br /></div><div style="font-family: arial; "><i>But what if I already have a website on my ISP'server (or elsewhere) and I want to integrate my home webcams to it? Can this be done?</i></div><div style="font-family: arial; "><br /></div><div style="font-family: arial; ">Sure.</div><div style="font-family: arial; "><br /></div><div style="font-family: arial; ">On your website, add a "live camera" link to your home computer (or router). You can also directly integrate the image of the webcam to the page, so it becomes seamless for the user.</div><div style="font-family: arial; "><br /></div><div style="font-family: arial; ">Here is an example for a simple link to an image, put it in an IMG html tag:</div><div><span class="Apple-style-span">src="http://74.57.236.239/Cam1.jpg"</span></div><div style="font-family: arial; "><br /></div><div style="font-family: arial; ">If you need more info about how to setup such a link, how to get your computer's IP, or how to get a fix address for your computer, check out this a <a href="http://www.zonetrigger.com/articles/home_web_server/How_to_setup_a_http_server.php">HTTP how-to guide</a>.</div><div style="font-family: arial; "><br /></div><div style="font-family: arial; ">The default port for http is 80. Note that some ISPs do not allow home computers to host on certain ports for security reasons. Just host on another port, like 90 or 8080. In this case, the link to your computer should include the port number, like this:</div><div><span class="Apple-style-span">src="http://74.57.236.239:8080/Cam1.jpg"</span></div><div style="font-family: arial; "><br /></div><div style="font-family: arial; ">Such a server will probably not blow your monthly bandwidth limit since it does not stream video when no one is watching. But if you have a limit, keep an eye on your limit anyway...</div><div style="font-family: arial; "><br /></div><div style="font-family: arial; ">Button line: it's cheap and easy to setup, it's at anyone's reach and it gives an edge to your site. Use it to establish trust with you clientele by showing them the backstage of your operation, or to provide real-time proof in the progression of an experiment. Simple, effective, trustworthy.</div></div></span></div>Joe Jansonhttp://www.blogger.com/profile/15126450133551436795noreply@blogger.comtag:blogger.com,1999:blog-3685472624549840368.post-2819942024676890552011-05-18T04:54:00.000-07:002011-05-18T05:16:41.963-07:00Photo Finish for FlyBall<div style="text-align: left;"><span class="Apple-style-span" style="font-family: arial; ">I had never heard of Flyball until Dave contacted me a while back. He emailed me because he had a few questions about how best to proceed for his project.</span></div><div><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span"><span class="Apple-style-span" style="font-family: Georgia, serif; "><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzjpLE3b0wKzWeVVh1zeDW5dsn6kfRO6ALPb6nptQs0UsonPWRpJFZR1vwtElAREPzyIpMZjZTGhhebrgz5SuAQl9SqYhJWaDwdqwW8Ib3RuNZUcJ6iu3AxNcPaz7Tri7Ym6h-Owunvbhn/s1600/FileFlyballbox+terv+wb.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzjpLE3b0wKzWeVVh1zeDW5dsn6kfRO6ALPb6nptQs0UsonPWRpJFZR1vwtElAREPzyIpMZjZTGhhebrgz5SuAQl9SqYhJWaDwdqwW8Ib3RuNZUcJ6iu3AxNcPaz7Tri7Ym6h-Owunvbhn/s400/FileFlyballbox+terv+wb.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5608024065040041410" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 300px; " /></a></span></span></div><div style="text-align: right;"><span class="Apple-style-span"><i><a href="http://en.wikipedia.org/wiki/Flyball">Flyball</a> is a dog sport in which teams of dogs race against each other from a start/finish line, over a line of hurdles, to a box that releases a tennis ball to be caught when the dog presses the spring loaded pad, then back to their handlers while carrying the ball. Flyball is run in teams of four dogs, as a relay. </i></span><span class="Apple-style-span" style="font-family: arial; ">-Wikipedia</span></div><div><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span">The dogs are really fast. The competitors are serious about performance. The race clock has 3 decimal digits, every fraction of a second counts. Getting a good timing when relaying the dogs is critical; Ideal running is nose-to-nose at the start line. </span></div><div><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span">Dave had the idea of using <a href="http://www.zonetrigger.com/">Webcam Zone Trigger's motion detection system</a> to generate a photo-finish at the start line, this could be used as a training tool to get better relay times. The main question was how to get reasonable images fast enough for a photo finish.</span></div><div><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span">Most webcams can't get more than 30 frames per seconds. An exposure of 1/30th of a second makes for a blurry image when the dog is speeding by. First thing I suggested was to make sure there was a decent contrast between the dog and the background, this way the webcam would have a better chance. Good lighting will help in both the contrast and the camera's framerate.</span></div><div><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span">We talked about which camera would do the job best. From my previous tests, I knew that a USB DSLR camera would not release fast enough, so I recommended against that. Since Zone Trigger does the motion detection on live frames, it can save the exact frame on which is has detected motion, which is ideal. The issue was to find a camera that provides a stable and fast framerate.</span></div><div><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span">Dave tried out the PS3 Eye camera, which has a <a href="http://codelaboratories.com/downloads">driver available for Windows</a>. It turns out that it provided some decent results. The images where blurry, not good enough to hang on your wall, but good enough to get reliable motion detection.</span></div><div><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span"><span class="Apple-style-span" style="font-family: Georgia, serif; "><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXGJTYu1NTE3ErREak9iFKSbgaot46jPjjEr8Eu6lp4drjJqeH-eFi14XLsyyTWVSAyqgwQwHsu9TvQRpI77COpi8Bx5wh3in0RMA6RcQfVTHxJqUDEdgGp5DJks6YuTLwf4cXo_dJlPUv/s1600/great_pass.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiXGJTYu1NTE3ErREak9iFKSbgaot46jPjjEr8Eu6lp4drjJqeH-eFi14XLsyyTWVSAyqgwQwHsu9TvQRpI77COpi8Bx5wh3in0RMA6RcQfVTHxJqUDEdgGp5DJks6YuTLwf4cXo_dJlPUv/s400/great_pass.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5608024278271017410" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 400px; height: 312px; " /></a></span></span></div><div><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span"><i>"I used Zone Trigger today to get some captures. From a trigger standpoint, it worked flawlessly. 100% reliable and no false triggers! That’s pretty amazing, given how fast the dogs are going (1 ft per 50 msec)." </i></span><span class="Apple-style-span" style="font-family: arial; ">-Dave</span></div><div><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span">Thank you, Dave, for the great project!</span></div><div><span class="Apple-style-span">Go for the gold!</span></div><div><br /></div>Joe Jansonhttp://www.blogger.com/profile/15126450133551436795noreply@blogger.comtag:blogger.com,1999:blog-3685472624549840368.post-9334575996334796972011-05-11T11:04:00.000-07:002011-05-17T04:56:52.390-07:00Laser tripwire using webcams<div style="text-align: left;">Just in case you though these where just for spy and heist movies, Laser trip wires actually exist and are common in high tech security systems. The principle is so simple that it can quite easily be ported at home. Tripwires are better than conventional detection for a few reasons:</div><div><ul><li><span class="Apple-style-span" style="font-family: arial; ">Precise, reliable, fast detection</span></li><li><span class="Apple-style-span" style="font-family: arial; ">Works day & night, super useful at night.</span></li><li><span class="Apple-style-span" style="font-family: arial; ">Supports many tripwires</span></li></ul></div><div style="text-align: left;"><span class="Apple-style-span" style="font-family: arial; ">However, here is the drawbacks: Since the webcam is dedicated to monitoring laser beams, it may not be useful for taking pictures. But this may not be a problem if the goal of the system is to ring an alarm, run a program, output a signal, log the breach... all things that can be taken care of by the webcam software.</span></div><div style="text-align: left;"><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span">This method can be used for security, but </span><span class="Apple-style-span" style="font-family: arial; ">also for games, interactive art, science experiments, statistics...</span></div><div><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span">There are mainly 3 ways of making a cheap custom system of trip wires with webcams:</span></div><div style="text-align: center;"><span class="Apple-style-span"><br /></span></div><div style="text-align: center;"><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span"><b>Use Direct Lasers</b></span></div><div style="text-align: center;"><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span">You can get cheap laser pointers anywhere. So </span>just set one up to shoot directly in the webcam. Most laser pointers output only 1 millwatt so there is little risk this will fry the sensor. However, make sure you aren't shooting with a 150 milliwatt pointer.</div><div><br /></div><div><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh5YgCwQIIEZ90iIBlU4yh7VB7VR-SKeCL2gay_k5-zfqcVFZQjkY1hNLds3WIzKeFYa1XvkH23SstzHHrQh1ta3bZXBxudqUdivuIVc-mwwBVdeQKzUA0SJhBN7GmL5zbmxgFwApOEOfZc/s1600/laser-webcam.jpg" border="0" alt="" id="BLOGGER_PHOTO_ID_5605529402563411810" style="display: block; margin-top: 0px; margin-right: auto; margin-bottom: 10px; margin-left: auto; text-align: center; cursor: pointer; width: 545px;" /><br /><span class="Apple-style-span" style="font-family: arial; ">Note: Shooting a laser directly in the camera has 2 major drawbacks:</span></div><div><span class="Apple-style-span">-Laser needs to be aimed perfectly</span></div><div><span class="Apple-style-span">-Laser will scatter in the webcam lens, blinding it from anything else.</span></div><div style="text-align: center;"><span class="Apple-style-span"><br /></span></div><div style="text-align: center;"><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span"><b>Use Reflected Lasers</b></span></div><div><span class="Apple-style-span"><br /></span></div><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwgM6DPwajJEdX_Ycf6nocSltUkcVlJBocR_O_fgKHnWCUrvKWGeQXcQwyxAkbTi7igwEZg2WW5gD57_XmKQqngtKFseQNxHdWEGTsDsGV-lgrMhLHEX6ccihMO3lqzAWJquNh0h9ikKUJ/s1600/multi-laser-tripwire.jpg" style="width: 545px; display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" border="0" alt="" id="BLOGGER_PHOTO_ID_5605522257444386498" /><div style="text-align: center;"><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span">Here is when the <a href="http://www.zonetrigger.com/">Webcam Zone Trigger software</a> comes in handy. Because it uses hot spots, you shoot the laser on a reflective surface, then aim the camera there, and setup hot spots to detect each beam independently.</span></div><div><span class="Apple-style-span"><br /></span></div><div style="text-align: center;"><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span"><b>Use Normal Lights Spots</b></span></div><div><span class="Apple-style-span"><br /></span></div><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAxPul9J5JmdlXqoEiTqdHgVKh6Ol_0bAz3Oa5g6wn0rgjLDbd5_5LC48q90RTmb8DK1FOCRBnrgq5NVqzOiKMzQ0rCRT9yYAkT7IJf4L_kU8thCh0Pf1r-8J1xRkLGBPRZC6SqJroDdrm/s1600/webcam-trip-wire.jpg" style="width: 545px; display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;" border="0" alt="" id="BLOGGER_PHOTO_ID_5605522059068963570" /><div style="text-align: center;"><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span">Webcam have a huge advantage over laser sensors: webcams see the whole picture. So we can basically create the same tripwire effect without the lasers. If you setup light sources that emit a bright spot of light, then aim the camera that way, then setup hot spots over the light source, anything moving between the light and the camera will generate a trig. </span></div><div style="text-align: center;"><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span"><b>Optimize the camera for optimal tripwire performance</b></span></div><div style="text-align: center;"><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span">We need fast framerate.</span></div><div><span class="Apple-style-span">We don't need good image quality.</span></div><div><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span">Using the webcam motion detection software, connect to the camera using a low resolution 320x240. Then go to the Video Advanced settings for the webcam. </span></div><div><span class="Apple-style-span"><br /></span></div><div style="text-align: center;"><span class="Apple-style-span"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiK3Wk3dnpyAm5_6onHPbw-W5PlntF3d9mkuW69fl9uzeiCuCRFtuCpL8w7mAnnvfVkk1HwCLiJK6MEv9v_L4ZpchgFJWTuLwcUWLspg8RiYLcPiuM9uMeuvn7f4KTrmhY77mE2ZjJBGNqW/s400/advanced-webcam-settings.jpg" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 198px; height: 147px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5605521839511730130" /></span></div><div><span class="Apple-style-span">This setting window is different for each webcam model, depending on the webcam's hardware features. Webcams always try to get the best images possible, which mean they tune the amount of time it spends on each frame in order to get enough light. The idea here is to tell the webcam that we only care about speed. So try to tune the camera to reduce the exposure time for each image by disabling the "Auto exposure" and setting it to get a faster framerate.</span></div><div><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5V4QYTQgCppbFnaxaX6aUoG3uHu6mn5G8pP0vPG0ADB_r94GIeVmJMmpKaNgxedRC5Yh9iL8sdTyR3Pts5vdk82DwdhFso5m1OYm9bKiea6d8qPJUVHcgjnjdEEj8GJ2DKPrZJa6by0rB/s400/webcam-gain-settings.jpg" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 322px; height: 247px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5605521664735942626" /></span></div><div><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span" style="font-family: arial; ">Good luck with your tripwire project!</span></div><div><span class="Apple-style-span">Also, be sure to <a href="http://www.zonetrigger.com/webcam/webcam-software-download.php">download webcam Zone Trigger's motion detection software</a>...</span></div><div><span class="Apple-style-span"><br /></span></div><div><span class="Apple-style-span"><br /></span></div>Joe Jansonhttp://www.blogger.com/profile/15126450133551436795noreply@blogger.com2tag:blogger.com,1999:blog-3685472624549840368.post-65296282897495288712011-05-08T19:51:00.000-07:002011-05-09T11:32:47.312-07:00Two things for reliable motion detection<div style="text-align: left;"><span class="Apple-style-span" style="font-family: arial; ">You are using webcams for a computer vision project. Your project may require good image quality if you are saving the live images, but also you may not care about the quality of the images as long as you get reliable motion detection. Here are the two most important things you can do to get reliable motion detection...</span></div><div><span class="Apple-style-span"><div><br /></div><div><b>Light</b></div><div style="text-align: center;"><br /></div><div>Most webcams, even good models, take a dramatic performance hit in low light. They spend more time exposing for each frame, which reduces the amount of frame per seconds sent to the computer. It will also increase the voltage in the video sensor to make it more sensitive, which has the side-effect of producing noisy images (the live video will be grainy). Still, this may not be enough to get clear images; if the scene if not sufficiently light, the camera will provide a noisy, dark gray/brown-ish image.</div><div><br /></div><div>Low-contrast, noisy images make for a very poor start for motion detection. The processing can only be as good as the source images.</div><div style="text-align: center;"><br /></div><div><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigH0l-KBg8TyBQ6L4_QJKgjT7clSv70aaYRNnUwFjBBD378JjVM7-9HZP1uIGjfnsqTqjsM48iPK-0PVT0PcXGQwavIvqYtFNLpMbnU3iduZb8IwWjFZzTNzg730dkCFCO9ZOFlj-KB-NN/s320/dragon.jpg" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 188px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5604544749708323330" /></div><div style="text-align: center;">Good Light / Low Light</div><div><br /><div style="text-align: left;">You don't need to light up the whole scene, just the area of interest. The keyword here is contrast. For the software to see motion, there must be a clearly visible change on the image.</div></div><div style="text-align: center;"><br /></div><div><b>Hot Spots</b></div><div><br /></div><div>Don't run the motion detection on the whole image, especially if the image is noisy. Target a strategic zone on the image, the smaller the better. This way you can set the motion detection hot spot's sensitivity to be just right. </div><div style="text-align: center;"><br /></div><div>Pick a zone on the image that is sufficiently light, and that will yield a clear contrast when the motion occurs.</div><div><br /></div><div><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgFc875FPaoH5SonTyusXieoagbajBAKAhqMvdqkyFdw1Ic6oMjvoWKKYODs6A6BOatzpvO2nxliGn3wvwqz39joekgmqtdmxEmLqPHloNy_FMkCNAqAtOASM2QRv_zlfGW8sJpSj3pauel/s320/lighting.jpg" style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 157px;" border="0" alt="" id="BLOGGER_PHOTO_ID_5604545211004541010" /></div><div style="text-align: center;">Put the Hot Spot over a strategic zone</div><div><br /></div><div>The weird thing is that very few motion detection software use hot spots. Here is a tip: check out Webcam Zone Trigger, <a href="http://www.zonetrigger.com/webcam/webcam-software-download.php">download the webcam software here</a>.</div><div><br /></div><div style="text-align: center;"><br /></div></span></div>Joe Jansonhttp://www.blogger.com/profile/15126450133551436795noreply@blogger.com