Skip to content

Instantly share code, notes, and snippets.

@kawasima
Last active December 28, 2017 06:45
Show Gist options
  • Save kawasima/e4764f838fc69d942f1b to your computer and use it in GitHub Desktop.
Save kawasima/e4764f838fc69d942f1b to your computer and use it in GitHub Desktop.

Revisions

  1. kawasima revised this gist Dec 18, 2014. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions 00-index.md
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,12 @@
    [しょぼちむアドベントカレンダー](http://www.adventar.org/calendars/327) の18日目です
    [しょぼちむアドベントカレンダー](http://www.adventar.org/calendars/327) の18日目です

    私の知るsyobochimはこのまんまの奴です。

    ![tweet](http://bl.ocks.org/kawasima/raw/e4764f838fc69d942f1b/SnapCrab_NoName_2014-12-18_21-54-30_No-00.png)

    そしてこの後もことごとく呑みに行っても財布をもって来やしません。一応本人の言い訳としては、会社のロッカーに財布を入れているから忘れるんだ、とのこと。

    そこで、財布を持たずに会社をでて、半径300mエリアから外にでると、「財布見せろ~」の警告するアプリを作りました
    そこで、財布を持たずに会社をでて、半径300mエリアから外にでると、「財布見せろ~」の警告する[アプリを作りました](https://github.com/kawasima/remember-the-saifu)
    (ほんとはAndroidアプリにしたかったのですが、Android端末持ってなかったのでWebアプリにしました。)

    会社についたら、 http://rts.unit8.net/ にアクセスし財布の画像を登録します。
  2. kawasima revised this gist Dec 18, 2014. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions 00-index.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    私の知るsyobochimはこのまんまの奴です。

    ![tweet](https://gist.github.com/kawasima/e4764f838fc69d942f1b/raw/db418e4eab669c4d5cb2b14c03b354892fa97029/SnapCrab_NoName_2014-12-18_21-54-30_No-00.png)
    ![tweet](http://bl.ocks.org/kawasima/raw/e4764f838fc69d942f1b/SnapCrab_NoName_2014-12-18_21-54-30_No-00.png)

    そしてこの後もことごとく呑みに行っても財布をもって来やしません。一応本人の言い訳としては、会社のロッカーに財布を入れているから忘れるんだ、とのこと。

    @@ -11,25 +11,25 @@

    会社についたら、 http://rts.unit8.net/ にアクセスし財布の画像を登録します。

    ![start](https://gist.github.com/kawasima/e4764f838fc69d942f1b/raw/472f52614b9e207587906124a257e8ddb439ded6/15427185074_da6183d8ed_z.jpg)
    ![start](http://bl.ocks.org/kawasima/raw/e4764f838fc69d942f1b/15427185074_da6183d8ed_z.jpg)

    写真を撮って画像アップロードします。

    ![財布の登録](https://gist.github.com/kawasima/e4764f838fc69d942f1b/raw/bd344e1a734ab7492c64ed4583abb71a5671dfc0/16048767372_a337a0af41_z.jpg)
    ![財布の登録](http://bl.ocks.org/kawasima/raw/e4764f838fc69d942f1b/16048767372_a337a0af41_z.jpg)

    登録時の位置情報が起点となります。

    ![現在地](https://gist.github.com/kawasima/e4764f838fc69d942f1b/raw/79347ab0f7fb940a9c4bdf372fb5f80db32a4798/16047518131_38b0921cb2_z.jpg)
    ![現在地](http://bl.ocks.org/kawasima/raw/e4764f838fc69d942f1b/16047518131_38b0921cb2_z.jpg)

    半径300mが財布を持たずに行動して良いエリアです。そこから出ると…

    ![警告](https://gist.github.com/kawasima/e4764f838fc69d942f1b/raw/9ae1159a7527e0ead89a36a25cb530f9ffbfa2c3/16048766742_bb7149a37f_z.jpg)
    ![警告](http://bl.ocks.org/kawasima/raw/e4764f838fc69d942f1b/16048766742_bb7149a37f_z.jpg)

    財布の画像見せろ、とのメッセージでます。
    (本当はここで音声が鳴るのですが、スマフォ端末ではうまく鳴らすことが出来ませんでした…)

    ![OK]
    (https://gist.github.com/kawasima/e4764f838fc69d942f1b/raw/c94e9006ae507cdf068297c1bf7e20bf72494ec4/15863421819_21bbe9b544_z.jpg)
    (http://bl.ocks.org/kawasima/raw/e4764f838fc69d942f1b/15863421819_21bbe9b544_z.jpg)

    再度財布の写真を撮ってアップロードすると、同じものかどうかOpenCVでヒストグラムマッチングし、「一致」と判定されれば、呑みにいってよし、ということになります。

  3. kawasima revised this gist Dec 18, 2014. 1 changed file with 33 additions and 6 deletions.
    39 changes: 33 additions & 6 deletions 00-index.md
    Original file line number Diff line number Diff line change
    @@ -1,15 +1,42 @@
    ![tweet](SnapCrab_NoName_2014-12-18_21-54-30_No-00.png)
    [しょぼちむアドベントカレンダー](http://www.adventar.org/calendars/327) の18日目です。

    一応本人の言い訳としては、会社のロッカーに財布を入れているから忘れるんだ、とのこと。
    そこで、財布を持たずに会社をでて、半径300mエリアから外にでると、「財布見せろ~」の警告音がなるアプリを作りました。
    (ほんとはAndroidアプリにしたかったのですが、Android端末持ってなかったのでWebアプリにしました)
    私の知るsyobochimはこのまんまの奴です。

    警告音を止めるには、財布の写真を撮ってアップロードしなくてはなりません。
    ![tweet](https://gist.github.com/kawasima/e4764f838fc69d942f1b/raw/db418e4eab669c4d5cb2b14c03b354892fa97029/SnapCrab_NoName_2014-12-18_21-54-30_No-00.png)

    そしてこの後もことごとく呑みに行っても財布をもって来やしません。一応本人の言い訳としては、会社のロッカーに財布を入れているから忘れるんだ、とのこと。

    そこで、財布を持たずに会社をでて、半径300mエリアから外にでると、「財布見せろ~」の警告するアプリを作りました。
    (ほんとはAndroidアプリにしたかったのですが、Android端末持ってなかったのでWebアプリにしました。)

    会社についたら、 http://rts.unit8.net/ にアクセスし財布の画像を登録します。

    ![start](https://gist.github.com/kawasima/e4764f838fc69d942f1b/raw/472f52614b9e207587906124a257e8ddb439ded6/15427185074_da6183d8ed_z.jpg)

    写真を撮って画像アップロードします。

    ![財布の登録](https://gist.github.com/kawasima/e4764f838fc69d942f1b/raw/bd344e1a734ab7492c64ed4583abb71a5671dfc0/16048767372_a337a0af41_z.jpg)

    登録時の位置情報が起点となります。

    ![現在地](https://gist.github.com/kawasima/e4764f838fc69d942f1b/raw/79347ab0f7fb940a9c4bdf372fb5f80db32a4798/16047518131_38b0921cb2_z.jpg)

    半径300mが財布を持たずに行動して良いエリアです。そこから出ると…

    ![警告](https://gist.github.com/kawasima/e4764f838fc69d942f1b/raw/9ae1159a7527e0ead89a36a25cb530f9ffbfa2c3/16048766742_bb7149a37f_z.jpg)

    財布の画像見せろ、とのメッセージでます。
    (本当はここで音声が鳴るのですが、スマフォ端末ではうまく鳴らすことが出来ませんでした…)

    ![OK]
    (https://gist.github.com/kawasima/e4764f838fc69d942f1b/raw/c94e9006ae507cdf068297c1bf7e20bf72494ec4/15863421819_21bbe9b544_z.jpg)

    再度財布の写真を撮ってアップロードすると、同じものかどうかOpenCVでヒストグラムマッチングし、「一致」と判定されれば、呑みにいってよし、ということになります。

    これで、安心してしょぼちむと呑みにいけますね!

    と、これを本人に伝えた結果…

    「半径300m以内でしか呑みにいけなくなりますね」

    とのこと
    とのこと ヒィー!!((ノ)゚Д゚(ヽ))
  4. kawasima renamed this gist Dec 18, 2014. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions index.md → 00-index.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    ![tweet](SnapCrab_NoName_2014-12-18_21-54-30_No-00.png)

    一応本人の言い訳としては、会社のロッカーに財布を入れているから忘れるんだ、とのこと。
    そこで、財布を持たずに会社をでて、半径300mエリアから外にでると、「財布見せろ~」の警告音がなるアプリを作りました。
    (ほんとはAndroidアプリにしたかったのですが、Android端末持ってなかったのでWebアプリにしました)
  5. kawasima revised this gist Dec 18, 2014. 6 changed files with 0 additions and 0 deletions.
    Binary file added 15427185074_da6183d8ed_z.jpg
    Loading
    Sorry, something went wrong. Reload?
    Sorry, we cannot display this file.
    Sorry, this file is invalid so it cannot be displayed.
    Binary file added 15863421819_21bbe9b544_z.jpg
    Loading
    Sorry, something went wrong. Reload?
    Sorry, we cannot display this file.
    Sorry, this file is invalid so it cannot be displayed.
    Binary file added 16047518131_38b0921cb2_z.jpg
    Loading
    Sorry, something went wrong. Reload?
    Sorry, we cannot display this file.
    Sorry, this file is invalid so it cannot be displayed.
    Binary file added 16048766742_bb7149a37f_z.jpg
    Loading
    Sorry, something went wrong. Reload?
    Sorry, we cannot display this file.
    Sorry, this file is invalid so it cannot be displayed.
    Binary file added 16048767372_a337a0af41_z.jpg
    Loading
    Sorry, something went wrong. Reload?
    Sorry, we cannot display this file.
    Sorry, this file is invalid so it cannot be displayed.
    Binary file added SnapCrab_NoName_2014-12-18_21-54-30_No-00.png
    Loading
    Sorry, something went wrong. Reload?
    Sorry, we cannot display this file.
    Sorry, this file is invalid so it cannot be displayed.
  6. kawasima created this gist Dec 18, 2014.
    13 changes: 13 additions & 0 deletions index.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    一応本人の言い訳としては、会社のロッカーに財布を入れているから忘れるんだ、とのこと。
    そこで、財布を持たずに会社をでて、半径300mエリアから外にでると、「財布見せろ~」の警告音がなるアプリを作りました。
    (ほんとはAndroidアプリにしたかったのですが、Android端末持ってなかったのでWebアプリにしました)

    警告音を止めるには、財布の写真を撮ってアップロードしなくてはなりません。

    これで、安心してしょぼちむと呑みにいけますね!

    と、これを本人に伝えた結果…

    「半径300m以内でしか呑みにいけなくなりますね」

    とのこと