Looks like OP literally plagiarized the code in that article (and changed one or two variable names) without giving credit. Really bad form...
I think he did a great job demonstrating this, and also the discussion on HN brought the original pyimagesearch.com blog post to people's attention. That's a net positive.
I'm wondering about the code license though. The code posted on Github is licensed as MIT, but the pyimagesearch code doesn't seem to indicate any license (I downloaded it by registering my email address).
I'll do the needful and add credits to the article wherever possible. Thanks.