Pythonで作ったしょうもないもの3連発

88588a21eacd7969c5784aed75e84c06?s=47 kon_yu
October 08, 2018
99

 Pythonで作ったしょうもないもの3連発

PyLadies Tokyo 4周年記念パーティー
https://pyladies-tokyo.connpass.com/event/99733/

88588a21eacd7969c5784aed75e84c06?s=128

kon_yu

October 08, 2018
Tweet

Transcript

  1. PythonͰ࡞ͬͨ ͠ΐ͏΋ͳ͍΋ͷ3࿈ൃ @kon_yu PyLadies Tokyo - 4प೥ه೦ύʔςΟ

  2. ࣗݾ঺հ • ϑϦʔϥϯεΤϯδχΞ • ԰߸: ίϯϢ΢εέηΠαΫγϣ • @kon_yu • Rubyist

  3. ܅ͨͪPythonͰ ࢓ࣄ͹͔Γͯ͠ΔΜͩΖʁ

  4. ͕ͪ͏͕ͪ͏ Python͸΋ͬͱ༡ͼʹ࢖͑ΔΜͩ

  5. Python͸༡ͼʹ࢖͑Δ • Pytyon͸͓΋ͪΌΛ࡞Δͷʹ޲͍͍ͯΔ͜ͱ Λઆ໌ͭͭ͠ • ΦϨ͕աڈ࡞ͬͨࣄྫΛ3ͭ঺հ • PythonͰ͓΋ͪΌΛ࡞Ζ͏ͱ͍͏ؾʹͳͬͯ ΋Β͍͍ͨ

  6. ͳΜͰ༡ͼʹ࢖͑Δʁ • PythonΛ࢖͏ਓ͸ੈքதʹ͍Δ(RubyΑΓ΋ ਓޱ͕ଟ͍) • ࢖͍ͬͯΔਓޱ͕ଟ͍ͱͳʹ͔ςΫϊϩδʔ ͕͋ΔͱɺPythonͷϥούʔ͕େମ͋Δ

  7. ྫ͑͹ • ిࢠ޻࡞Arduino
 Arduino Playground
 (https://playground.arduino.cc/interfacing/python) • Kinect SDKͷϥούʔ PyKinect2


    Kinect/PyKinect2
 (https://github.com/Kinect/PyKinect2)
  8. ྫ͑͹ • ࢦͷδΣενϟʔೝࣝɹleap motion
 Leap Motion Python SDK
 (https://developer-archive.leapmotion.com/ documentation/python/index.html)

    • VR։ൃ OpenVRϥούʔ
 pyopenvr OpenVR virtual reality SDK 
 (https://github.com/cmbruns/pyopenvr)
  9. ͜ͷΑ͏ʹ • ͍͍ͩͨPythonϥούʔ͋ΔΑͶ • ͦΕͰ͸࡞ͬͯΈͨ΋ͷΛݟͯΈΑ͏

  10. ࡞ͬͨ΋ͷͦͷ1
 GET WILDΠϯτϩΫΠζ • 2017೥4݄ʹTMNͷΞϧόϜ͕ൃച͞ΕશۂGet Wild͕36ۂೖͬͨૉఢͳΞϧόϜ͕ൃച͞Εͨ • Get WildͷαϏΛௌ͍ͯͲͷGet Wild͔4୒Ͱ౰ͯΔ

    • Raspberry Pi3ʹλονύωϧͷӷথΛ෇͚ɺ֎෇͚ ͷεϐʔΧ͔ΒԻΛ໐Β͍ͯ͠Δ
  11. ࡞ͬͨ΋ͷͦͷ1
 GET WILDΠϯτϩΫΠζ

  12. ࡞ͬͨ΋ͷͦͷ1
 GET WILDΠϯτϩΫΠζ • Demoಈը
 https://www.youtube.com/watch?v=BQcabXPf10s • Blogهࣄ: Maker Faire

    Tokyo 2017ʹGet Wildͳ ΠϯτϩΫΠζΛग़ల 
 https://konyu.hatenablog.com/entry/2017/09/10/ 012125
  13. ࡞ͬͨ΋ͷͦͷ1
 GET WILDΠϯτϩΫΠζ • ࢖ٕͬͨज़ • ϋʔυ΢ΣΞʹRaspberry Pi3ͱσΟεϓϨΠ • mp3࠶ੜ:

    mplayer • GUI࡞੒Tcl/Tkϥούʔ: tkinter
  14. ࡞ͬͨ΋ͷͦͷ2 ܰྔʂϦΞϧλΠϜͰވؒϞβΠΫॲཧ • ਓؒͷը૾͔Βओཁͳ෦ҐΛऔಘ͘͢Δٕ ज़͕͋Γɺਂ౓ηϯαΛ࢖ͬͨKinect͕༗໊ • OpenPoseͱ͍͏σΟʔϓϥʔχϯάΛ༻͍ͨ ฏ໘ը૾͚ͩͰ͜Ε͕Ͱ͖Δ͕ɺΊͪΌΊͪΌ ॏ͍

  15. ࡞ͬͨ΋ͷͦͷ2 ܰྔʂϦΞϧλΠϜͰވؒϞβΠΫॲཧ • աڈʹKinectΛ࢖ͬͯވؒʹϦΞϧλΠϜʹ ϞβΠΫॲཧ͢Δ΋ͷΛ࡞ͬͨ • OpenCVͱͦͷإೝࣝػೳͰ΋ͬͱܰྔʹϞ βΠΫॲཧΛͨ͠

  16. ࡞ͬͨ΋ͷͦͷ2 ܰྔʂϦΞϧλΠϜͰވؒϞβΠΫॲཧ

  17. ࡞ͬͨ΋ͷͦͷ2 ܰྔʂϦΞϧλΠϜͰވؒϞβΠΫॲཧ

  18. ࡞ͬͨ΋ͷͦͷ2 ܰྔʂϦΞϧλΠϜͰވؒϞβΠΫॲཧ • ࢖ٕͬͨज़ • macͷϑϩϯτΧϝϥ • ϥΠϒϥϦ: OpenCV-Python •

    ϛυϧ΢ΣΞ: OpenCV3 • ͜ΕΛ࡞ͬͨͱ͖͸Ruby͸OpenCV3޲͚ͷϥΠϒϥϦ͸ͳͯ͘OpenCV2·Ͱͩͬͨ
  19. ࡞ͬͨ΋ͷͦͷ3 தࠃ޿भࢢʹ͋ΔϦτϧΞϑϦΧɺͦ͜ʹ΍ͬͯ͘Δ൴Β͸࣮ࡍͲ͔͜Β ΍ͬͯ͘Δͷ͔σʔλΛूΊͯݕূͨ͠ • தࠃ޿भࢢʹ͸ΞϑϦΧɾΞϥϒݍങ͍෇͚ʹདྷ ΔϦτϧΞϑϦΧ͕͋Δɺͦͷ͏ͪλϯβχΞ͔ Βങ͍෇͚Δਓ͕ଟ͍Β͍͠ • ࣮ࡍͲ͔͜Β΍ͬͯ͘Δͷ͔σʔλΛूΊ͔ͯ֬ ΊͯΈͨ

    • Blogϙετ: https://bit.ly/2y5lMdH
  20. ࡞ͬͨ΋ͷͦͷ3 தࠃ޿भࢢʹ͋ΔϦτϧΞϑϦΧɺͦ͜ʹ΍ͬͯ͘Δ൴Β͸࣮ࡍͲ͔͜Β ΍ͬͯ͘Δͷ͔σʔλΛूΊͯݕূͨ͠

  21. ࡞ͬͨ΋ͷͦͷ3 தࠃ޿भࢢʹ͋ΔϦτϧΞϑϦΧɺͦ͜ʹ΍ͬͯ͘Δ൴Β͸࣮ࡍͲ͔͜Β ΍ͬͯ͘Δͷ͔σʔλΛूΊͯݕূͨ͠ • InstagramͰϦτϧΞϑϦΧͷ࠷ دΓͷখถӺʹλά෇͚ͯ͠ ͍ΔσʔλΛεΫϨΠϐϯά • ϢʔβΛׂΓग़͠ɺ֤Ϣʔβ ͷҐஔ৘ใ෇͖౤ߘը૾Λ෼

    ੳ͠ग़਎ࠃΛਪఆ
  22. ࡞ͬͨ΋ͷͦͷ3 தࠃ޿भࢢʹ͋ΔϦτϧΞϑϦΧɺͦ͜ʹ΍ͬͯ͘Δ൴Β͸࣮ࡍͲ͔͜Β ΍ͬͯ͘Δͷ͔σʔλΛूΊͯݕূͨ͠

  23. ࡞ͬͨ΋ͷͦͷ3 தࠃ޿भࢢʹ͋ΔϦτϧΞϑϦΧɺͦ͜ʹ΍ͬͯ͘Δ൴Β͸࣮ࡍͲ͔͜Β ΍ͬͯ͘Δͷ͔σʔλΛूΊͯݕূͨ͠ ର৅Ϣʔβ͕౤ߘͨ͠ࠃʑ ਪఆग़਎ࠃ

  24. ࡞ͬͨ΋ͷͦͷ3 தࠃ޿भࢢʹ͋ΔϦτϧΞϑϦΧɺͦ͜ʹ΍ͬͯ͘Δ൴Β͸࣮ࡍͲ͔͜Β ΍ͬͯ͘Δͷ͔σʔλΛूΊͯݕূͨ͠ • ࢖ٕͬͨज़ • ϥΠϒϥϦ: ΠϯελάϥϜΛεΫϨΠϐϯά instagram-scraper •

    σʔλॲཧ: Colaboratory, Google Spread Sheet • σʔλϏδϡΞϥΠζ: Google data studioɺGoogle map ϚΠϚοϓ
  25. ·ͱΊ • Python͸ੈքதͰ࢖ΘΕͯΔͷͰɺେମϥο ύʔ͸͋Δ • ͳͷͰ͓΋ͪΌΛ࡞Δʹ͸Python͕͏ͬͯͭ ͚