# pxt-DFRobot_HuskyLensV2 **Repository Path**: dfrobot/pxt-DFRobot_HuskyLensV2 ## Basic Information - **Project Name**: pxt-DFRobot_HuskyLensV2 - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-17 - **Last Updated**: 2026-02-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # HuskyLens 2 [HUSKYLENS 2 is an easy-to-play AI vision sensor that provides a variety of AI vision functions, such as object detection, pose recognition, and instance segmentation.](https://www.dfrobot.com/product-2995.html) ## Basic usage ## Example HuskyLens 2 offers a very detailed tutorial on using MakeCode.(https://wiki.dfrobot.com/Tutorial%20for%20HUSKYLENS%202%20and%20micro:bit%20Graphical%20Programming(MakeCode)) * HuskyLens 2 Init I2C and select pattern. ```blocks huskylens2.I2CInit() huskylens2.switchAlgorithm(Algorithm.AlgorithmFaceRecognition) ``` * HuskyLens 2 collects data for facial recognition and outputs it. ```blocks basic.forever(function () { huskylens2.getResultFaceRecognition() if (huskylens2.availableFaceRecognition()) { serial.writeLine("Id:" + huskylens2.cachedCenterResult(BasePropertyId.Id)) serial.writeLine("NAME:" + huskylens2.cachedCenterResult(BasePropertyId.Name)) serial.writeLine("X:" + huskylens2.cachedCenterResult(BasePropertyId.XCenter)) serial.writeLine("Y:" + huskylens2.cachedCenterResult(BasePropertyId.YCenter)) serial.writeLine("W:" + huskylens2.cachedCenterResult(BasePropertyId.Width)) serial.writeLine("H:" + huskylens2.cachedCenterResult(BasePropertyId.Height)) serial.writeLine("----") } }) ``` ## License MIT Copyright (c) 2020, microbit/micropython Chinese community ## Supported targets * for PXT/microbit