<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ryan Baumann on Medium]]></title>
        <description><![CDATA[Stories by Ryan Baumann on Medium]]></description>
        <link>https://medium.com/@ryanfb?source=rss-a4b9eb5ea9b5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*yOzPae-z00fdvBqs.png</url>
            <title>Stories by Ryan Baumann on Medium</title>
            <link>https://medium.com/@ryanfb?source=rss-a4b9eb5ea9b5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 12:36:30 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ryanfb/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I failed to replicate an $86 million project in 1 line of code]]></title>
            <link>https://medium.com/@ryanfb/how-i-failed-to-replicate-an-86-million-project-in-1-line-of-code-615048a1f9d0?source=rss-a4b9eb5ea9b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/615048a1f9d0</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[alpr]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Ryan Baumann]]></dc:creator>
            <pubDate>Sat, 02 Sep 2017 17:05:45 GMT</pubDate>
            <atom:updated>2017-09-02T17:05:45.476Z</atom:updated>
            <content:encoded><![CDATA[<h4>When an experiment with existing open source technology just cherry-picks results to make it look good</h4><p>The Medium article “<a href="https://medium.freecodecamp.org/how-i-replicated-an-86-million-project-in-57-lines-of-code-277031330ee9"><em>How I replicated an $86 million project in 57 lines of code</em></a>” has been doing the rounds the last few days, describing how an automated license plate recognition (ALPR) system being developed for the Australian Victoria Police could just use the open-source ALPR system <a href="https://github.com/openalpr/openalpr">OpenALPR</a> instead. This is basically the article-length version of the ubiquitous outraged “Why does this need $X? I could code that up in a weekend!” comments made on any sufficiently-mundane (or complicated!) tech rollout.</p><p>However, since OpenALPR <em>is</em> free* and open-source, we can test just how plausible this claim is.</p><p>Ignoring the boring stuff like getting OpenALPR working on your local computer, let’s jump straight to trying to automatically pull license plates out of a dashcam video. For my test video I picked “<a href="https://www.youtube.com/watch?v=hrD75ebjCms"><em>Drive around Bendigo</em></a>”, a thrilling 27 minute YouTube video of someone “Driving around Bendigo, Victoria, Australia,” which I felt would be a somewhat representative test, as it’s 1080p car footage that’s quite clear and from around the area where the system will be deployed. After downloading it with youtube-dl I fed it to OpenALPR with time alpr --clock -n 1 &#39;Drive around Bendigo-hrD75ebjCms.mp4&#39; &gt; bendigo.txt and let it churn for…</p><p>Hm. Well that’s a problem. <strong>Processing my 27 minute video took just over 3.5 hours</strong> on my 3.5GHz Core i7. Not exactly <a href="https://twitter.com/aallan/status/903713242052165633">real-time</a>. Pencil in a few quid for “optimization” and a few more for “ultra-beefy computer hardware in every patrol vehicle” I guess.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*M1xG70FfydTIBOy8gLAPQg.png" /><figcaption>OpenALPR processing time. Yikes.</figcaption></figure><p>Anyway, on to <a href="https://gist.github.com/ryanfb/69e5bed7059b7a5187b6d38c0ed6bdcd">the results</a>! Gotta spend CPU cycles to make…catching thieves easier, as the saying goes. Let’s filter the results down to just the potential license plates with fgrep confidence bendigo.txt. Pipe that in to wc -l and it looks like we’ve got 6,137 potential plates (or 1,653 if we filter those down to unique plate numbers). Not bad! Wait, that seems like a lot. Let’s take a closer look:</p><pre>fgrep confidence bendigo.txt| cut -d&#39; &#39; -f 6 | sort -u | shuf | head<br>SURANT<br>1IR9DT<br>111DIDI<br>ARR0W1<br>I311<br>SGRD<br>D1R91T<br>0DI10D<br>II000<br>1ID1</pre><p>Some of these seem…bad. Ok, no big deal, let’s deploy some of the “very straight forward code-first fixes” proposed in the article like adopting “a threshold […] that only accepts a confidence of greater than 90% before going on to validate the registration number.”</p><p>Running fgrep &#39;confidence: 9&#39; bendigo.txt | cut -d&#39; &#39; -f 6 | sort -u to cut it down to just the 90%+ confidence plate numbers and filter them to only the unique ones, what do we get?</p><pre>0G700       HERE      M5ER      TUG700    WKX2D2<br>0NRED       HM5ER     MP356     TUG70Q    X036<br>1HM5ER      IUG700    R1GHT     TUG70U    XP036<br>1IR9IT      JG700     R1LV      TUG7Q0    XS036<br>1ZZ735      KEEP      SLV522    TZ2735    XSP036<br>DH0SAHUT    KX212     SLV52Z    TZZ735    XSP036E<br>ERGE        KX2D2     SLV5Z2    UG700     XSPQ36<br>ERQGHT      KXZ12     T0G700    UG70U     YLJ641<br>G700        LANE      T0G70U    VKX212    YLJ64D<br>GR1L        LJ641     T2Z735    WKX212    YLJ64I<br>GRILL       LV522     TDG700</pre><p>OK, so we still have some apparent duplicates and recognition errors, and presumably the registration validation will sort these out. Checking these with <a href="https://www.vicroads.vic.gov.au/registration/buy-sell-or-transfer-a-vehicle/buy-a-vehicle/check-vehicle-registration/vehicle-registration-enquiry">the VicRoads site</a>, we wind up with <strong>a grand total of seven automatically-recognized “valid” plates for 27 minutes of video</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*riv8m4oF0y28g_kobHZA-Q.jpeg" /><figcaption><em>One of the handful of plates OpenALPR correctly recognized in the wild. Success!</em></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iLhSCNFIuBn-TvDgoRQjdg.jpeg" /><figcaption>Is that T<strong>U</strong>G700 or T<strong>D</strong>G700 in the middle? OpenALPR can’t decide. Both are valid plate numbers. “YLJ641” next to it apparently isn’t in the VicRoads database.</figcaption></figure><p>I’m not being intentionally disingenuous here: filtering the plate matches from OpenALPR down to just the “good” ones is a tricky problem. I encourage anyone to try, and post their methods &amp; results. But even beyond filtering the data down to good matches, the basic problem is that OpenALPR outright misses a huge number of clearly-legible plates in every video I’ve thrown at it, and takes forever to do so.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EPXKbElH_q5Uqam_RtOtLg.jpeg" /><figcaption>This plate is pretty legible in the full-resolution video. OpenALPR recognizes a plate in this one frame, but incorrectly, as “10DID”.</figcaption></figure><p>I love open source! I’d love for there to be a free, open source, robust, fast, and accurate ALPR system! It would be great if this project released whatever they do use as open source! But OpenALPR isn’t there yet, and pretending there’s already an open source solution for every problem when there’s <em>maybe</em> 25% of a solution there instead is never going to improve its reputation for quality.</p><p>Could this project be done for less than $86M? Maybe. Could they use OpenALPR as a starting point? Also maybe. Would it actually reduce the cost? Who knows: it’s a complex project with complex requirements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=615048a1f9d0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Archiving Video from #Ferguson]]></title>
            <link>https://medium.com/on-archivy/archiving-video-from-ferguson-504e95859756?source=rss-a4b9eb5ea9b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/504e95859756</guid>
            <category><![CDATA[ferguson]]></category>
            <dc:creator><![CDATA[Ryan Baumann]]></dc:creator>
            <pubDate>Thu, 09 Apr 2015 20:03:36 GMT</pubDate>
            <atom:updated>2015-04-09T20:03:36.589Z</atom:updated>
            <content:encoded><![CDATA[<p>In <a href="https://medium.com/on-archivy/documenting-the-now-ferguson-in-the-archives-adcdbe1d5788"><em>Documenting the Now: #Ferguson in the Archives</em></a>, Bergis Jules highlighted the importance of photo and video content to the events of Ferguson. In thinking about ways to practically achieve archiving this content, I realized a program called <a href="http://rg3.github.io/youtube-dl/">youtube-dl</a> (which downloads videos not just from YouTube, but from a number of sites) would be pretty well-suited for the job and wrote <a href="https://github.com/ryanfb/ferguson-video">a short script to call it</a> for <a href="https://github.com/edsu/ferguson-urls">every URL in Ed Summers’ Ferguson Twitter archive</a>. After some initial mis-steps, I decided to prioritize processing videos from Vine first (where the six second limit makes it a far more tractable corpus than the entire set of URLs):</p><h3>Ryan Baumann on Twitter</h3><p>Initial results of running https://github.com/ryanfb/ferguson-video ... to extract Vines from Ferguson archive: 4,038 videos in 3.3GB, 556 404 not found errors</p><p>That’s nice and all, and gives us some simple statistics for estimating the size of this subset of the data, an idea of what might already be at risk for going unarchived, and a local copy of the data in case Vine <a href="http://ourincrediblejourney.tumblr.com/">announces they’ve come to the end of their incredible journey</a> tomorrow.</p><p>But what can we actually do with the data?</p><p>I think that question, and the questions I came up with in the process of trying to answer it, are important ones to think about and discuss for this or any other similar social media video archive. Some of these issues are similar to the issues Ed has wrestled with for the Twitter archive itself, while others may be unique to the medium of video.</p><p>How do we share such an archive? How do we mediate it, curate it, present it, and make it available to others?</p><p>How do we decide which videos are “important” or “related” to Ferguson? Which videos do we want to keep? Some popular links in the Twitter archive are to a specific Vine/YouTube/Instagram user account, which may have been posting about Ferguson at the time, but have other videos on their accounts as well.</p><p>What sorts of statistical analyses and visualizations can we use to examine this data? Is there anything interesting we could discover from analyzing “just metadata” (title, description, uploader, timestamp, comments, views, likes, reposts, linking tweets, video length)? Could we trace the spread of popular videos? Some of these things might require establishing links between URLs from the archive and videos from the archive, something the current process doesn’t record (and which may be a many-to-many relationship).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FIWjGMvqmwqx8IaKGidhhg.png" /><figcaption>Histogram distribution of upload date for Vines from the Ferguson Twitter archive</figcaption></figure><p>What sorts of audio, video, or image processing could we do against this archive? Can we detect video re-posting/re-use (Vines used in news stories, for example)? Could we automatically classify videos based on their contents? Could we geolocate and timestamp videos? Could we apply facial recognition algorithms? What would we hope to learn from these tasks?</p><p>What are the ethics of trying to recover/archive missing videos? Many of these videos are on personal accounts. Perhaps some are cases of people just deleting their account, and not realizing they might be inadvertently deleting a piece of history. Perhaps others are cases where people explicitly wished to remove a specific video or painful memories. We have no real way of knowing. But this also raises the question of how to address these problems in prospective archiving; if we had run this video archival process alongside the original Twitter archive process, we would probably have far fewer “not found” videos, but that doesn’t remove the ethical question about people exercising their <a href="https://medium.com/on-archivy/on-forgetting-e01a2b95272">right to be forgotten</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=504e95859756" width="1" height="1" alt=""><hr><p><a href="https://medium.com/on-archivy/archiving-video-from-ferguson-504e95859756">Archiving Video from #Ferguson</a> was originally published in <a href="https://medium.com/on-archivy">On Archivy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>