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東海#44】Pydroid3で画像処理
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
高橋かずひと
November 18, 2023
Technology
0
2k
【Python東海#44】Pydroid3で画像処理
スライド内では動画を多用しているため、動画を確認したい方はYouTubeでの視聴を推奨しています。
YouTube:
https://youtu.be/Od0POpMRpQk
高橋かずひと
November 18, 2023
Tweet
Share
More Decks by 高橋かずひと
See All by 高橋かずひと
【PyCon mini Shizuoka 2026】生成AI時代に画像処理やオーディオ処理のノードエディターを作る理由
kazuhitotakahashi
0
560
【NGK2026S】日本株のシステムトレードに入門してみた
kazuhitotakahashi
0
1.4k
【NGK2025S】動物園(PINTO_model_zoo)に遊びに行こう
kazuhitotakahashi
1
2.3k
【Pycon mini 東海 2024】Google Colaboratoryで試すVLM
kazuhitotakahashi
2
2.3k
【Unagi.py 56枚目】動物園(PINTO_model_zoo)に遊びに行こう
kazuhitotakahashi
1
1.8k
【Python東海#43】Image-Processing-Node-Editor
kazuhitotakahashi
0
1.2k
【MLN】Visual Blocks for ML
kazuhitotakahashi
0
1.4k
【NGK2023S】 ノードエディタ形式の画像処理ツール「Image-Processing-Node-Editor」
kazuhitotakahashi
0
1.7k
【Pythonデータ分析勉強会#33】「DearPyGuiに入門しました」の続き~Image-Processing-Node-Editor~
kazuhitotakahashi
0
1.9k
Other Decks in Technology
See All in Technology
スピンアウト講座06_認証系(API-OAuth-MCP)入門
overflowinc
0
400
Cortex Code CLI と一緒に進めるAgentic Data Engineering
__allllllllez__
0
570
AWS Systems Managerのハイブリッドアクティベーションを使用したガバメントクラウド環境の統合管理
toru_kubota
0
110
事例から紐解くSHIFT流QA支援 ~大規模プロジェクトの品質管理支援、QA組織立ち上げ~ / 20260320 Nozomu Koketsu
shift_evolve
PRO
0
110
スピンアウト講座04_ルーティン処理
overflowinc
0
420
Bill One 開発エンジニア 紹介資料
sansan33
PRO
5
18k
プラットフォームエンジニアリングはAI時代の開発者をどう救うのか
jacopen
8
4.2k
建設DXを支えるANDPAD: 2025年のセキュリティの取り組みと卒業したいセキュリティ
andpad
0
110
「お金で解決」が全てではない!大規模WebアプリのCI高速化 #phperkaigi
stefafafan
4
2.1k
ソフトバンク流!プラットフォームエンジニアリング実現へのアプローチ
sbtechnight
1
240
Phase03_ドキュメント管理
overflowinc
0
930
【Λ(らむだ)】最近のアプデ情報 / RPALT20260318
lambda
0
140
Featured
See All Featured
svc-hook: hooking system calls on ARM64 by binary rewriting
retrage
2
180
Reality Check: Gamification 10 Years Later
codingconduct
0
2.1k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.2k
Product Roadmaps are Hard
iamctodd
PRO
55
12k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
410
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
81
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Applied NLP in the Age of Generative AI
inesmontani
PRO
4
2.2k
Leadership Guide Workshop - DevTernity 2021
reverentgeek
1
240
Designing Powerful Visuals for Engaging Learning
tmiket
0
290
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
220
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.1k
Transcript
Pydroid 3 で画像処理 Python東海 #44 2023/11/18
2 Who am I ? Name Twitter :KzhtTkhs :高橋かずひと Work
:画像処理 兼 なんでも屋 Other :Axross寄稿や インディーゲーム開発の お手伝いしています
3 Who am I ? Name Twitter :KzhtTkhs :高橋かずひと Work
:画像処理 兼 なんでも屋 Other : Axross寄稿や インディーゲーム開発の お手伝いしています
What is Pydroid 3? 4
5 Pydroid3とは Pydroid 3は、Android向けの 最も使いやすく強力な教育用 Python 3 IDE ※「最も使いやすく」と「強力な」は公式の自称 有料💴
※2023年8月購入時は日本円で1850円の買い切りアプリ
6 Pydroid3の特徴
7 Pydroid3 Loaded with modern educational libraries and assets “最新の教育ラ
イブラリとアセ ットが満載”
8 Interactive terminal mode for both casual and advanced usage
“カジュアルで も高度でも使用 できる対話型タ ーミナル”
9 Multiple graphical interface libaries support “複数の視覚的 なインターフェ イス ライブラ
リのサポート”
10 Custom pip repository if bundled C compiler is not
fast enough “バンドルCでは十分 に動作しないパッケ ージのカスタムpipリ ポジトリ”
11 Code completion and error checking(premium feature) “コード補完とエラ ーチェック (プレミアム機能)”
12 Native matplotlib support with Tkinter and PyQt5 “Tkinter と
PyQt5 によるネイ ティブ matplotlib サポート”
13 Use your phone sensors with Kivy and Qt “Kivy
と Qt 上で スマートフォンの センサーを利用で きる”
14 Pydroid3を画像処理に使う 「QUICK INSTALL」に用意されて いる画像処理に使えるパッケージ ・OpenCV ・Pillow ・NumPy ・PyTorch ・TensorFlow
など
15 Pydroid3を画像処理に使う その他のパッケージは「INSTALL」 からインストールできるが、 CPUアーキテクチャに依存するよう なパッケージは「QUICK INSTALL」にあるものしか使用でき ない ONNX Runtimeが使えないのは残念。。。
16 Pydroid3を画像処理に使う 表示に関わる処理は、 Tkinter や QTを 使わなければならない ため、OpenCVで作 るような簡易なサンプ ルを動かす場合は注意
右図はTkinter利用例 # TK用にチャンネルをRGBに変更 rgb_image = cv2.cvtColor(debug_image, cv2.COLOR_BGR2RGB) # 表示向き補正 label_width = label.winfo_screenwidth() label_height = label.winfo_screenheight() image_width = rgb_image.shape[0] image_height = rgb_image.shape[1] image_width, image_height = image_height, image_width # TKのラベル更新 img = Image.fromarray(rgb_image) imgtk = ImageTk.PhotoImage(image=img) label.configure(image=imgtk) label.update() label.after(0, label_loop) cv2.imshow(“Sample", debug_image) cv2.waitKey(100)
17 Pydroid3:サンプル① OpenCVを用いたカメラ制御 ・カメラ入力 ・オートフォーカス制御 ・露出制御 ・ライト など
18 Pydroid3:サンプル② OpenCVでアスキーカメラ
19 Pydroid3:サンプル③ PyTorchを用いたクラス分類 ・MobileNet v2
20 Pydroid3:実演デモ TensorFlow Lite を用いた物体検出 ほぼチューニング無しでGoogle Pixel Foldで約10fps (見た感じ、おそらく、CPU推論) ・YOLOX-Nano
21 こんな人に向いているかも 画像処理やAIのスマホプロトタイプをサッと動かしたい人 ・画像処理(特にAI関連)は、基本的にPython ・Androidアプリは、基本的にはJAVA or Kotlin → Pythonでサッと作って、ちょっとスマホで試したい と言う場合に、JAVAに書き換える作業は正直面倒。。。
ご清聴ありがとうございました🙂