1 Star 0 Fork 0

DFRobot/pxt-DFRobot_HuskyLens

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
test.ts 651 Bytes
一键复制 编辑 原始数据 按行查看 历史
TgJe 提交于 2020-07-09 15:12 +08:00 . 修改不兼容蓝牙问题
huskylens.initMode(protocolAlgorithm.ALGORITHM_OBJECT_TRACKING)
basic.forever(function () {
huskylens.request()
if (huskylens.isAppear_s(HUSKYLENSResultType_t.HUSKYLENSResultBlock)) {
if (huskylens.isLearned(1)) {
serial.writeValue("x", huskylens.readeBox(1, Content1.xCenter))
serial.writeValue("y", huskylens.readeBox(1, Content1.yCenter))
serial.writeValue("k", huskylens.readeBox(1, Content1.width))
serial.writeValue("h", huskylens.readeBox(1, Content1.height))
} else {
serial.writeString("-1")
}
} else {
serial.writeString("-1")
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/dfrobot/pxt-DFRobot_HuskyLens.git
git@gitee.com:dfrobot/pxt-DFRobot_HuskyLens.git
dfrobot
pxt-DFRobot_HuskyLens
pxt-DFRobot_HuskyLens
master

搜索帮助