Forum >huskylens integration to Rpi automatic application running
huskylens integration to Rpi automatic application running

Hi,
I have interface an huskylens to Rpi, but when we run exampleHL.py code given. When we upload the code, the husky lens is not automatically running the application we specified in the code. We have to manually select the application and moreover in the application , the result from husky about the width, xcenter etc is getting when we enter the key using keyboard, I need to print the Resultall() function continuously.
So, if someone has gone through and got succeeded in the both the questions I raised, Please help me in sorting it.
I have interface an huskylens to Rpi, but when we run exampleHL.py code given. When we upload the code, the husky lens is not automatically running the application we specified in the code. We have to manually select the application and moreover in the application , the result from husky about the width, xcenter etc is getting when we enter the key using keyboard, I need to print the Resultall() function continuously.
So, if someone has gone through and got succeeded in the both the questions I raised, Please help me in sorting it.
2021-11-30 12:14:48 I connect husky to my raspberry pi with the usb cable.
for p in ports:
# print(f"port: {p.description}")
if "CP2102N" in p.description:
HUSKY_USB = p.device
hl = HuskyLensLibrary("SERIAL", HUSKY_USB)
hl.algorthim("ALGORITHM_FACE_RECOGNITION") # chose here your algorithm: face tracking
Possible algorithms:
"ALGORITHM_FACE_RECOGNITION"
"ALGORITHM_OBJECT_RECOGNITION"
"ALGORITHM_LINE_TRACKING"
"ALGORITHM_COLOR_RECOGNITION"
"ALGORITHM_TAG_RECOGNITION"
"ALGORITHM_OBJECT_CLASSIFICATION"
it's similar if you connect by i2c: https://github.com/DFRobot/pxt-DFRobot_ ... /README.md
ugodehaes
for p in ports:
# print(f"port: {p.description}")
if "CP2102N" in p.description:
HUSKY_USB = p.device
hl = HuskyLensLibrary("SERIAL", HUSKY_USB)
hl.algorthim("ALGORITHM_FACE_RECOGNITION") # chose here your algorithm: face tracking
Possible algorithms:
"ALGORITHM_FACE_RECOGNITION"
"ALGORITHM_OBJECT_RECOGNITION"
"ALGORITHM_LINE_TRACKING"
"ALGORITHM_COLOR_RECOGNITION"
"ALGORITHM_TAG_RECOGNITION"
"ALGORITHM_OBJECT_CLASSIFICATION"
it's similar if you connect by i2c: https://github.com/DFRobot/pxt-DFRobot_ ... /README.md
