Upgrade to Pro — share decks privately, control downloads, hide ads and more …

GoPiGo2で遊んでみた

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

 GoPiGo2で遊んでみた

Avatar for Kazuyuki Mori

Kazuyuki Mori

May 15, 2016
Tweet

More Decks by Kazuyuki Mori

Other Decks in Programming

Transcript

  1. エンコーダーホイール • エンコーダーの穴は合計64個なので、360 / 64で、5 deg / pulse • ホイールの半径は3.25cm

    • DER (Degree Per Ratio)がわかれば、タイヤをn cm進むのに必要なパルス数 が求められる
  2. どこでもRaspberryPI開発したい - SSH Tunnelを使う • $ sudo apt-get install autossh

    • $ git clone https://github.com/mainyaa/RaspberryPi-Mothership • $ cd ssh-tunnel-example • $ vim usr/bin/ssh_tunnel ◦ [ssh_tunnel]をglobalIPに書き換え
  3. どこでもRaspberryPI開発したい - SSH Tunnelを使う • sudo apt-get install -y autossh

    • git clone https://github.com/mainyaa/RaspberryPi-Mothership.git • sudo cp ./RaspberryPi-Mothership/init.d/ssh_tunnel /etc/init.d/ • sudo cp ./RaspberryPi-Mothership/sbin/ssh_tunnel /usr/sbin/ • sudo insserv ssh_tunnel • sudo reboot ◦ これで、RPIが常に中継サーバーにSSH接続している 状態になった
  4. GoPiGo2で脳◦メーカー作ってみた • Cloud Vision APIすごいよ • # LABEL_DETECTION カテゴリの検出 •

    # LANDMARK_DETECTION 観光名所などの場所名 • # LOGO_DETECTION ロゴの検出 • # TEXT_DETECTION OCR、文字の検出 • # SAFE_SEARCH_DETECTION 画像が有害な内容を含んでいるかを検出 • # IMAGE_PROPERTIES 画像に関する色データを検出 • # FACE_DETECTION 顔検出 •