更新记录
1.0.0(2025-09-18)
可用版本,接口较少
平台兼容性
uni-app(4.45)
Vue2 |
Vue2插件版本 |
Vue3 |
Vue2插件版本 |
Chrome |
Safari |
app-vue |
app-vue插件版本 |
app-nvue |
app-nvue插件版本 |
Android |
Android插件版本 |
iOS |
鸿蒙 |
√ |
1.0.0 |
√ |
1.0.0 |
× |
× |
√ |
1.0.0 |
√ |
1.0.0 |
5.0 |
1.0.0 |
× |
- |
微信小程序 |
支付宝小程序 |
抖音小程序 |
百度小程序 |
快手小程序 |
京东小程序 |
鸿蒙元服务 |
QQ小程序 |
飞书小程序 |
快应用-华为 |
快应用-联盟 |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
- |
uni-app x(4.45)
Chrome |
Safari |
Android |
iOS |
鸿蒙 |
微信小程序 |
- |
- |
- |
- |
- |
- |
jjc-yolo8-bullet
开发文档
基于tensorflow的人体姿态插件, 本来想用yolo的...
引入
import {
predictBase64
} from "@/uni_modules/jjc-yolo8-bullet"
推理
- 图片会被resize至257*257像素
- 返回的x,y坐标是257下的坐标值
- 默认模型使用:posenet_model
- 使用示例:
predictBase64(base64String, (res, person) => {
let ctx = uni.createCanvasContext("canvas", this)
ctx.setFillStyle('blue')
for (let i in person.keyPoints) {
//绘制点
if(person.keyPoints[i].score>0.8){
// console.log(person.keyPoints)
console.log(person.keyPoints[i])
let p = person.keyPoints[i].position
let x = p.x * (600 / 257)
let y = p.y * (350 / 257)
//部位
let bodyPart = person.keyPoints[i].bodyPart
ctx.beginPath()
ctx.arc(x, y, 3, 0,
2 * Math.PI, true)
ctx.setFillStyle('blue')
ctx.closePath();
ctx.fill()
ctx.draw(true)
}
}
console.log(ctx)
})