Approved content
The content below is provided by a partner.
huskylens.initI2c()
huskylens.initMode(protocolAlgorithm.ALGORITHM_FACE_RECOGNITION)
basic.forever(function () {
huskylens.request()
})
huskylens.initI2c()
huskylens.initMode(protocolAlgorithm.ALGORITHM_FACE_RECOGNITION)
basic.forever(function () {
huskylens.request()
if (huskylens.isLearned(1)) {
if (huskylens.isAppear(1, HUSKYLENSResultType_t.HUSKYLENSResultBlock)) {
serial.writeValue("box", huskylens.readeBox(1, Content1.xCenter))
}
}
})
huskylens.initI2c()
huskylens.initMode(protocolAlgorithm.ALGORITHM_FACE_RECOGNITION)
basic.forever(function () {
huskylens.request()
serial.writeValue("box", huskylens.readBox_s(Content3.ID))
})
huskylens.initI2c()
huskylens.initMode(protocolAlgorithm.ALGORITHM_FACE_RECOGNITION)
basic.forever(function () {
huskylens.request()
serial.writeValue("box", huskylens.readBox_ss(1, Content3.ID))
})
MIT
Copyright (c) 2020, microbit/micropython Chinese community
Huskylens=github:DFRobot/pxt-DFRobot_HuskyLens#v2.0.6