fix: pose hand
This commit is contained in:
@ -277,28 +277,28 @@ const handBones = [
|
||||
{ start: 96, end: 97, color: COLOR_FINGERS, name: "右手食指近节指骨" },
|
||||
{ start: 97, end: 98, color: COLOR_FINGERS, name: "右手食指中节指骨" },
|
||||
{ start: 98, end: 99, color: COLOR_FINGERS, name: "右手食指远节指骨" },
|
||||
{ start: 99, end: 100, color: COLOR_FINGERS, name: "右手食指指尖" },
|
||||
// { start: 99, end: 100, color: COLOR_FINGERS, name: "右手食指指尖" },
|
||||
|
||||
// 右手中指
|
||||
{ start: 91, end: 100, color: COLOR_FINGERS, name: "右手中指掌骨" },
|
||||
{ start: 100, end: 101, color: COLOR_FINGERS, name: "右手中指近节指骨" },
|
||||
{ start: 101, end: 102, color: COLOR_FINGERS, name: "右手中指中节指骨" },
|
||||
{ start: 102, end: 103, color: COLOR_FINGERS, name: "右手中指远节指骨" },
|
||||
{ start: 103, end: 104, color: COLOR_FINGERS, name: "右手中指指尖" },
|
||||
// { start: 103, end: 104, color: COLOR_FINGERS, name: "右手中指指尖" },
|
||||
|
||||
// 右手无名指
|
||||
{ start: 91, end: 104, color: COLOR_FINGERS, name: "右手无名指掌骨" },
|
||||
{ start: 104, end: 105, color: COLOR_FINGERS, name: "右手无名指近节指骨" },
|
||||
{ start: 105, end: 106, color: COLOR_FINGERS, name: "右手无名指中节指骨" },
|
||||
{ start: 106, end: 107, color: COLOR_FINGERS, name: "右手无名指远节指骨" },
|
||||
{ start: 107, end: 108, color: COLOR_FINGERS, name: "右手无名指指尖" },
|
||||
// { start: 107, end: 108, color: COLOR_FINGERS, name: "右手无名指指尖" },
|
||||
|
||||
// 右手小指
|
||||
{ start: 91, end: 108, color: COLOR_FINGERS, name: "右手小指掌骨" },
|
||||
{ start: 108, end: 109, color: COLOR_FINGERS, name: "右手小指近节指骨" },
|
||||
{ start: 109, end: 110, color: COLOR_FINGERS, name: "右手小指中节指骨" },
|
||||
{ start: 110, end: 111, color: COLOR_FINGERS, name: "右手小指远节指骨" },
|
||||
{ start: 111, end: 112, color: COLOR_FINGERS, name: "右手小指指尖" },
|
||||
// { start: 111, end: 112, color: COLOR_FINGERS, name: "右手小指指尖" },
|
||||
|
||||
// 左手拇指
|
||||
{ start: 112, end: 113, color: COLOR_FINGERS, name: "左手拇指掌骨" },
|
||||
@ -311,28 +311,28 @@ const handBones = [
|
||||
{ start: 117, end: 118, color: COLOR_FINGERS, name: "左手食指近节指骨" },
|
||||
{ start: 118, end: 119, color: COLOR_FINGERS, name: "左手食指中节指骨" },
|
||||
{ start: 119, end: 120, color: COLOR_FINGERS, name: "左手食指远节指骨" },
|
||||
{ start: 120, end: 121, color: COLOR_FINGERS, name: "左手食指指尖" },
|
||||
// { start: 120, end: 121, color: COLOR_FINGERS, name: "左手食指指尖" },
|
||||
|
||||
// 左手中指
|
||||
{ start: 112, end: 121, color: COLOR_FINGERS, name: "左手中指掌骨" },
|
||||
{ start: 121, end: 122, color: COLOR_FINGERS, name: "左手中指近节指骨" },
|
||||
{ start: 122, end: 123, color: COLOR_FINGERS, name: "左手中指中节指骨" },
|
||||
{ start: 123, end: 124, color: COLOR_FINGERS, name: "左手中指远节指骨" },
|
||||
{ start: 124, end: 125, color: COLOR_FINGERS, name: "左手中指指尖" },
|
||||
// { start: 124, end: 125, color: COLOR_FINGERS, name: "左手中指指尖" },
|
||||
|
||||
// 左手无名指
|
||||
{ start: 112, end: 125, color: COLOR_FINGERS, name: "左手无名指掌骨" },
|
||||
{ start: 125, end: 126, color: COLOR_FINGERS, name: "左手无名指近节指骨" },
|
||||
{ start: 126, end: 127, color: COLOR_FINGERS, name: "左手无名指中节指骨" },
|
||||
{ start: 127, end: 128, color: COLOR_FINGERS, name: "左手无名指远节指骨" },
|
||||
{ start: 128, end: 129, color: COLOR_FINGERS, name: "左手无名指指尖" },
|
||||
// { start: 128, end: 129, color: COLOR_FINGERS, name: "左手无名指指尖" },
|
||||
|
||||
// 左手小指
|
||||
{ start: 112, end: 129, color: COLOR_FINGERS, name: "左手小指掌骨" },
|
||||
{ start: 129, end: 130, color: COLOR_FINGERS, name: "左手小指近节指骨" },
|
||||
{ start: 130, end: 131, color: COLOR_FINGERS, name: "左手小指中节指骨" },
|
||||
{ start: 131, end: 132, color: COLOR_FINGERS, name: "左手小指远节指骨" },
|
||||
{ start: 132, end: 133, color: COLOR_FINGERS, name: "左手小指指尖" }
|
||||
// { start: 132, end: 133, color: COLOR_FINGERS, name: "左手小指指尖" }
|
||||
]
|
||||
|
||||
// 合并所有骨骼连接
|
||||
@ -602,6 +602,7 @@ const drawPoseResults = (img: HTMLImageElement) => {
|
||||
ctx.beginPath()
|
||||
ctx.arc(point[0] * scaleX, point[1] * scaleY, 2, 0, Math.PI * 2)
|
||||
ctx.fill()
|
||||
// ctx.fillText((index).toString(), point[0] * scaleX, point[1] * scaleY)
|
||||
|
||||
// 绘制关键点轮廓
|
||||
ctx.strokeStyle = '#000000'
|
||||
|
||||
Reference in New Issue
Block a user