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
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
4
360
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
31
2.7k
Why You Should Never Use an ORM
jnunemaker
PRO
54
9k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3k
Learning to Love Humans: Emotional Interface Design
aarron
273
40k
RailsConf 2023
tenderlove
29
890
Statistics for Hackers
jakevdp
796
220k
How To Stay Up To Date on Web Technology
chriscoyier
788
250k
Building Better People: How to give real-time feedback that sticks.
wjessup
364
19k
Docker and Python
trallard
40
3.1k
How STYLIGHT went responsive
nonsquared
95
5.2k
Music & Morning Musume
bryan
46
6.2k
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͕͏ͬͯͭ ͚