Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Pythonで作ったしょうもないもの3連発
Search
kon_yu
October 08, 2018
0
140
Pythonで作ったしょうもないもの3連発
PyLadies Tokyo 4周年記念パーティー
https://pyladies-tokyo.connpass.com/event/99733/
kon_yu
October 08, 2018
Tweet
Share
More Decks by kon_yu
See All by kon_yu
CTOやフリーランスのキャリアについて
konyu
1
700
石橋を叩いて渡るフリーランスのなり方。マイルド版
konyu
0
50
石橋を叩いて渡るフリーランスエンジニアのなりかた
konyu
0
2.2k
おうちハックLT Roombaでネコを監視してみた
konyu
0
940
Gemの作り方 BacklogのAPIを利用して
konyu
0
1.4k
Processingでクリエイティブコーディング
konyu
0
4.8k
スタートアップツールチラ見せナイト
konyu
0
2.5k
HerokuでRailsアプリ運用のパフォーマンス、SEO対策
konyu
3
3k
HerokuでWBS砲を打ち返した話
konyu
49
16k
Featured
See All Featured
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
GraphQLの誤解/rethinking-graphql
sonatard
67
10k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.3k
Rails Girls Zürich Keynote
gr2m
93
13k
Embracing the Ebb and Flow
colly
84
4.5k
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
280
13k
Typedesign – Prime Four
hannesfritz
40
2.4k
Raft: Consensus for Rubyists
vanstee
136
6.6k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
42
9.2k
Fireside Chat
paigeccino
33
3k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
47
5k
Templates, Plugins, & Blocks: Oh My! Creating the theme that thinks of everything
marktimemedia
26
2.1k
Transcript
PythonͰ࡞ͬͨ ͠ΐ͏ͳ͍ͷ3࿈ൃ @kon_yu PyLadies Tokyo - 4पه೦ύʔςΟ
ࣗݾհ • ϑϦʔϥϯεΤϯδχΞ • ߸: ίϯϢεέηΠαΫγϣ • @kon_yu • Rubyist
܅ͨͪPythonͰ ࣄ͔Γͯ͠ΔΜͩΖʁ
͕ͪ͏͕ͪ͏ Pythonͬͱ༡ͼʹ͑ΔΜͩ
Python༡ͼʹ͑Δ • Pytyon͓ͪΌΛ࡞Δͷʹ͍͍ͯΔ͜ͱ Λઆ໌ͭͭ͠ • ΦϨ͕աڈ࡞ͬͨࣄྫΛ3ͭհ • PythonͰ͓ͪΌΛ࡞Ζ͏ͱ͍͏ؾʹͳͬͯ Β͍͍ͨ
ͳΜͰ༡ͼʹ͑Δʁ • PythonΛ͏ਓੈքதʹ͍Δ(RubyΑΓ ਓޱ͕ଟ͍) • ͍ͬͯΔਓޱ͕ଟ͍ͱͳʹ͔ςΫϊϩδʔ ͕͋ΔͱɺPythonͷϥούʔ͕େମ͋Δ
ྫ͑ • ిࢠ࡞Arduino Arduino Playground (https://playground.arduino.cc/interfacing/python) • Kinect SDKͷϥούʔ PyKinect2
Kinect/PyKinect2 (https://github.com/Kinect/PyKinect2)
ྫ͑ • ࢦͷδΣενϟʔೝࣝɹ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)
͜ͷΑ͏ʹ • ͍͍ͩͨPythonϥούʔ͋ΔΑͶ • ͦΕͰ࡞ͬͯΈͨͷΛݟͯΈΑ͏
࡞ͬͨͷͦͷ1 GET WILDΠϯτϩΫΠζ • 20174݄ʹTMNͷΞϧόϜ͕ൃച͞ΕશۂGet Wild͕36ۂೖͬͨૉఢͳΞϧόϜ͕ൃച͞Εͨ • Get WildͷαϏΛௌ͍ͯͲͷGet Wild͔4ͰͯΔ
• Raspberry Pi3ʹλονύωϧͷӷথΛ͚ɺ֎͚ ͷεϐʔΧ͔ΒԻΛ໐Β͍ͯ͠Δ
࡞ͬͨͷͦͷ1 GET WILDΠϯτϩΫΠζ
࡞ͬͨͷͦͷ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
࡞ͬͨͷͦͷ1 GET WILDΠϯτϩΫΠζ • ٕͬͨज़ • ϋʔυΣΞʹRaspberry Pi3ͱσΟεϓϨΠ • mp3࠶ੜ:
mplayer • GUI࡞Tcl/Tkϥούʔ: tkinter
࡞ͬͨͷͦͷ2 ܰྔʂϦΞϧλΠϜͰވؒϞβΠΫॲཧ • ਓؒͷը૾͔Βओཁͳ෦ҐΛऔಘ͘͢Δٕ ज़͕͋ΓɺਂηϯαΛͬͨKinect͕༗໊ • OpenPoseͱ͍͏σΟʔϓϥʔχϯάΛ༻͍ͨ ฏ໘ը૾͚ͩͰ͜Ε͕Ͱ͖Δ͕ɺΊͪΌΊͪΌ ॏ͍
࡞ͬͨͷͦͷ2 ܰྔʂϦΞϧλΠϜͰވؒϞβΠΫॲཧ • աڈʹKinectΛͬͯވؒʹϦΞϧλΠϜʹ ϞβΠΫॲཧ͢ΔͷΛ࡞ͬͨ • OpenCVͱͦͷإೝࣝػೳͰͬͱܰྔʹϞ βΠΫॲཧΛͨ͠
࡞ͬͨͷͦͷ2 ܰྔʂϦΞϧλΠϜͰވؒϞβΠΫॲཧ
࡞ͬͨͷͦͷ2 ܰྔʂϦΞϧλΠϜͰވؒϞβΠΫॲཧ
࡞ͬͨͷͦͷ2 ܰྔʂϦΞϧλΠϜͰވؒϞβΠΫॲཧ • ٕͬͨज़ • macͷϑϩϯτΧϝϥ • ϥΠϒϥϦ: OpenCV-Python •
ϛυϧΣΞ: OpenCV3 • ͜ΕΛ࡞ͬͨͱ͖RubyOpenCV3͚ͷϥΠϒϥϦͳͯ͘OpenCV2·Ͱͩͬͨ
࡞ͬͨͷͦͷ3 தࠃभࢢʹ͋ΔϦτϧΞϑϦΧɺͦ͜ʹͬͯ͘Δ൴Β࣮ࡍͲ͔͜Β ͬͯ͘Δͷ͔σʔλΛूΊͯݕূͨ͠ • தࠃभࢢʹΞϑϦΧɾΞϥϒݍങ͍͚ʹདྷ ΔϦτϧΞϑϦΧ͕͋Δɺͦͷ͏ͪλϯβχΞ͔ Βങ͍͚Δਓ͕ଟ͍Β͍͠ • ࣮ࡍͲ͔͜Βͬͯ͘Δͷ͔σʔλΛूΊ͔ͯ֬ ΊͯΈͨ
• Blogϙετ: https://bit.ly/2y5lMdH
࡞ͬͨͷͦͷ3 தࠃभࢢʹ͋ΔϦτϧΞϑϦΧɺͦ͜ʹͬͯ͘Δ൴Β࣮ࡍͲ͔͜Β ͬͯ͘Δͷ͔σʔλΛूΊͯݕূͨ͠
࡞ͬͨͷͦͷ3 தࠃभࢢʹ͋ΔϦτϧΞϑϦΧɺͦ͜ʹͬͯ͘Δ൴Β࣮ࡍͲ͔͜Β ͬͯ͘Δͷ͔σʔλΛूΊͯݕূͨ͠ • InstagramͰϦτϧΞϑϦΧͷ࠷ دΓͷখถӺʹλά͚ͯ͠ ͍ΔσʔλΛεΫϨΠϐϯά • ϢʔβΛׂΓग़͠ɺ֤Ϣʔβ ͷҐஔใ͖ߘը૾Λ
ੳ͠ग़ࠃΛਪఆ
࡞ͬͨͷͦͷ3 தࠃभࢢʹ͋ΔϦτϧΞϑϦΧɺͦ͜ʹͬͯ͘Δ൴Β࣮ࡍͲ͔͜Β ͬͯ͘Δͷ͔σʔλΛूΊͯݕূͨ͠
࡞ͬͨͷͦͷ3 தࠃभࢢʹ͋ΔϦτϧΞϑϦΧɺͦ͜ʹͬͯ͘Δ൴Β࣮ࡍͲ͔͜Β ͬͯ͘Δͷ͔σʔλΛूΊͯݕূͨ͠ ରϢʔβ͕ߘͨ͠ࠃʑ ਪఆग़ࠃ
࡞ͬͨͷͦͷ3 தࠃभࢢʹ͋ΔϦτϧΞϑϦΧɺͦ͜ʹͬͯ͘Δ൴Β࣮ࡍͲ͔͜Β ͬͯ͘Δͷ͔σʔλΛूΊͯݕূͨ͠ • ٕͬͨज़ • ϥΠϒϥϦ: ΠϯελάϥϜΛεΫϨΠϐϯά instagram-scraper •
σʔλॲཧ: Colaboratory, Google Spread Sheet • σʔλϏδϡΞϥΠζ: Google data studioɺGoogle map ϚΠϚοϓ
·ͱΊ • PythonੈքதͰΘΕͯΔͷͰɺେମϥο ύʔ͋Δ • ͳͷͰ͓ͪΌΛ࡞ΔʹPython͕͏ͬͯͭ ͚