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!
=== Assistant: 下面是你提供的 CVZone 手部辨識基本範例,我已完整讀過。 === 下面是你提供的 CVZone 手部辨識基本範例,我已完整讀過。 如果你接下來想把「手勢 1~10」整合進去,我可以直接幫你改寫成: ===== (符合你提供的手勢圖片邏輯) ===== 只要你說一聲「要」,我就幫你做。 以下先把你貼的程式碼做: ===== - 使用 CVZone 的 HandDetector 偵測單手 ===== * 用 fingersUp() 判斷伸出的手指數量 * 利用手指數量辨識(石頭/剪刀/布) * 用 OpenCV 顯示結果 如果你想加上: ===== 因為 CVZone 的 fingersUp() 回傳 5 個值(大拇指~小指), ===== 例如: <syntaxhighlight>[0,1,0,0,0] → 食指伸出 = 1 [0,1,1,0,0] → 食指+中指 = 2 </syntaxhighlight> 但像「7」「8」「9」「10」需要更細的角度判斷(例如:左右手、交叉、手勢方向),這必須手動寫規則或加入 MediaPipe 的 landmark 角度運算。 如果你要的只是「依照你提供的手勢圖片邏輯辨識 1~10」,我可以直接給你下面三種版本: ==== 可以直接動作,不需額外 landmark 計算。 ==== ==== 可處理類似 shaka(6),或 7、8、9 的特殊手勢。 ==== ==== 需要 landmark 角度+左右手 cross 判斷(例如手勢 10)。 ==== 你希望我直接產生: ===== 只要你說「要 1~10 版本」,我就立即幫你寫。 =====
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)