Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/692fcfd8-4b44-800f-a184-fa098175a6d5
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== 可以直接拿這支程式跟學生拆解: ==== ===== <syntaxhighlight lang="python">lmList = hand["lmList"] ===== </syntaxhighlight> * 這裡得到的是: [(x0,y0,z0), (x1,y1,z1), ..., (x20,y20,z20)] * 運算思維重點:先知道系統給你的原始資料長什麼樣子 ===== - 食指角度 → 只用 5, 6, 7 三個點 ===== * Pinch → 只用 4, 8 兩個點 => 從 21 點裡挑出「對解題有用的那幾點」 ===== - 距離: dist = sqrt((x1-x2)^2 + (y1-y2)^2) ===== * 角度: 利用內積公式: cosθ = (v1·v2) / (|v1||v2|) → θ = arccos(...) 可以讓學生自己寫在學習單上,或用白板演算。 ===== - 如果 角度 > 150 → 顯示「伸直」 ===== * 如果 距離 < 40 → 顯示「Pinch」 這邊很適合讓學生自己改數字,試看看效果: * 把 150 改成 140,看「伸直」變多還是變少 * 把 40 改成 60,看「Pinch」變容易還是變困難 如果你願意,我也可以幫你: * 把這段「運算思維示範」改寫成 學習單題目(引導學生填空) * 或產出一份 PPT 架構(每一頁拆一個步驟:資料 → 抽象 → 演算法 → 條件判斷) 你想往「教案 / 學習單 / PPT」哪一邊走,我可以直接幫你接下一步。
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)