<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://www.baszerr.eu/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>BaSzErr - blog:2013:05:01</title>
        <description></description>
        <link>https://www.baszerr.eu/</link>
        <lastBuildDate>Wed, 06 May 2026 09:37:37 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://www.baszerr.eu/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>BaSzErr</title>
            <link>https://www.baszerr.eu/</link>
        </image>
        <item>
            <title>green_island</title>
            <link>https://www.baszerr.eu/doku.php?id=blog:2013:05:01:green_island</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;green_island&quot;&gt;2013.05.01 - green island&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
few days ago we&amp;#039;ve came back from &lt;a href=&quot;https://en.wikipedia.org/wiki/Ireland&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/Ireland&quot;&gt;Ireland&lt;/a&gt;. beautiful views, nice weather (except for when it&amp;#039;s raining), smiling ppl… really nice! :) see for yourself – click on the image to enlarge.
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;https://www.baszerr.eu/lib/exe/detail.php?id=blog%3A2013%3A05%3A01%3Agreen_island&amp;amp;media=blog:2013:05:01:low_img_8517.jpg&quot; class=&quot;media&quot; title=&quot;blog:2013:05:01:low_img_8517.jpg&quot;&gt;&lt;img src=&quot;https://www.baszerr.eu/lib/exe/fetch.php?w=200&amp;amp;tok=158df9&amp;amp;media=blog:2013:05:01:low_img_8517.jpg&quot; class=&quot;media&quot; loading=&quot;lazy&quot; title=&quot;helipad in the end&quot; alt=&quot;helipad in the end&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.baszerr.eu/lib/exe/detail.php?id=blog%3A2013%3A05%3A01%3Agreen_island&amp;amp;media=blog:2013:05:01:low_img_8616.jpg&quot; class=&quot;media&quot; title=&quot;blog:2013:05:01:low_img_8616.jpg&quot;&gt;&lt;img src=&quot;https://www.baszerr.eu/lib/exe/fetch.php?w=200&amp;amp;tok=b55ee2&amp;amp;media=blog:2013:05:01:low_img_8616.jpg&quot; class=&quot;media&quot; loading=&quot;lazy&quot; title=&quot;port&quot; alt=&quot;port&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.baszerr.eu/lib/exe/detail.php?id=blog%3A2013%3A05%3A01%3Agreen_island&amp;amp;media=blog:2013:05:01:low_img_8624.jpg&quot; class=&quot;media&quot; title=&quot;blog:2013:05:01:low_img_8624.jpg&quot;&gt;&lt;img src=&quot;https://www.baszerr.eu/lib/exe/fetch.php?w=200&amp;amp;tok=49e03f&amp;amp;media=blog:2013:05:01:low_img_8624.jpg&quot; class=&quot;media&quot; loading=&quot;lazy&quot; title=&quot;sunset 1&quot; alt=&quot;sunset 1&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.baszerr.eu/lib/exe/detail.php?id=blog%3A2013%3A05%3A01%3Agreen_island&amp;amp;media=blog:2013:05:01:low_img_8712.jpg&quot; class=&quot;media&quot; title=&quot;blog:2013:05:01:low_img_8712.jpg&quot;&gt;&lt;img src=&quot;https://www.baszerr.eu/lib/exe/fetch.php?w=200&amp;amp;tok=fd0ec9&amp;amp;media=blog:2013:05:01:low_img_8712.jpg&quot; class=&quot;media&quot; loading=&quot;lazy&quot; title=&quot;sunset 2&quot; alt=&quot;sunset 2&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.baszerr.eu/lib/exe/detail.php?id=blog%3A2013%3A05%3A01%3Agreen_island&amp;amp;media=blog:2013:05:01:low_img_8801.jpg&quot; class=&quot;media&quot; title=&quot;blog:2013:05:01:low_img_8801.jpg&quot;&gt;&lt;img src=&quot;https://www.baszerr.eu/lib/exe/fetch.php?w=200&amp;amp;tok=122563&amp;amp;media=blog:2013:05:01:low_img_8801.jpg&quot; class=&quot;media&quot; loading=&quot;lazy&quot; title=&quot;edge of the mountains&quot; alt=&quot;edge of the mountains&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://www.baszerr.eu/lib/exe/detail.php?id=blog%3A2013%3A05%3A01%3Agreen_island&amp;amp;media=blog:2013:05:01:low_img_8920.jpg&quot; class=&quot;media&quot; title=&quot;blog:2013:05:01:low_img_8920.jpg&quot;&gt;&lt;img src=&quot;https://www.baszerr.eu/lib/exe/fetch.php?w=200&amp;amp;tok=074fa8&amp;amp;media=blog:2013:05:01:low_img_8920.jpg&quot; class=&quot;media&quot; loading=&quot;lazy&quot; title=&quot;windy coast&quot; alt=&quot;windy coast&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
of course how can one leave home w/o 21st century security? or at least a camera… ;) i already had &lt;a href=&quot;https://en.wikipedia.org/wiki/RTSP&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/RTSP&quot;&gt;RTSP&lt;/a&gt; streaming camera with &lt;a href=&quot;https://code.launchpad.net/~basz/axplincam/trunk&quot; class=&quot;urlextern&quot; title=&quot;https://code.launchpad.net/~basz/axplincam/trunk&quot; rel=&quot;ugc nofollow&quot;&gt;a bit of software for linux&lt;/a&gt; to control it. there was one problem – i was unable to find app for monitoring, supporting RTSP OotB. it was already less than 12h to flight. what can we do? well – how about python &lt;a href=&quot;https://en.wikipedia.org/wiki/OpenCV&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/OpenCV&quot;&gt;OpenCV&lt;/a&gt; &lt;abbr title=&quot;Application Programming Interface&quot;&gt;API&lt;/abbr&gt;? in about two hours i came up with a set of &lt;a href=&quot;https://en.wikipedia.org/wiki/Bash (Unix shell)&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/Bash (Unix shell)&quot;&gt;shell&lt;/a&gt;/&lt;a href=&quot;https://en.wikipedia.org/wiki/Python (programming language)&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/Python (programming language)&quot;&gt;python&lt;/a&gt; scripts to do this for me. pack of &lt;a href=&quot;https://www.baszerr.eu/lib/exe/fetch.php?media=blog:2013:05:01:home_monitoring.tar.bz2&quot; class=&quot;media mediafile mf_bz2&quot; title=&quot;blog:2013:05:01:home_monitoring.tar.bz2 (1.5 KB)&quot;&gt;scripts for capture and analysis&lt;/a&gt; consist of 4 individual elements:
&lt;/p&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; dump_rtsp (11 lines / bash) – using mplayer stores stream on disk. this is required, since image processing module does not support direct RTSP input.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; show_diffs (50 lines / python) – python/opencv script that detects movement by computing differences between consecutive images.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; run_for (20 lines / bash) – recodes raw stream from mplayer as mpeg4 for opencv input. it records 2h and then runs movement detection algorithm on this data pack.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; RUN_ALL (9 lines / bash) – wrapper that starts both capture and process scripts, communicating via named pipe.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;
and so a simple movement detection facility has been created! :) some observations:
&lt;/p&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; using libraries rocks. ;)&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; scripting languages are fast to write – whole “system” is juts 90 lines of code!&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; interesting part is communication via named pipes, since commands require file name to operate on.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; for security, files were stored on the remove drive, mounted locally with sshfs. local copies were used for analysis only. in the end, what good is “local” monitoring, when in case of actual brake-in, your hard drive gets stolen? ;)&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; cheap cameras sucks. when light was dim, but it was not fully dark yet, infrared LEDs were turning on and off every few frames, casing A LOT of false positives, few times per day. manual on/off needs to be added, to make it actually reliable.&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;
enjoy your holiday time! :)
&lt;/p&gt;

&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 15 Jun 2021 20:09:05 +0000</pubDate>
        </item>
    </channel>
</rss>
