Skip to content

int() can't convert non-string with explicit base #12

@DamonRecoil

Description

@DamonRecoil

Hello, I'm trying to make my code executed on RPi work with Huskylens, but I keep getting a Python error which I cannot seem to get around.

Python version: 3.9.x

My code:

print('Initializing...')
from huskylib import HuskyLensLibrary
import time
hl = HuskyLensLibrary("I2C","",address=0x32)
print(hl.knock())
print('Switching to face recognition algorithm...')
hl.algorthim("ALGORITHM_FACE_RECOGNITION")
print('Loading model...')
hl.loadModelFromSDCard(0)
print('Setting custom names...')
hl.setCustomName("Example1",1)
hl.setCustomName("Example2",2)
while "true":
    for each in hl.learnedBlocks():
        if each.ID == "Example1:ID1":
            print("Hello Example1!")
        if each.ID == "Example2:ID2":
            print ("Hello Example2!")
    time.sleep(1)

Complete error message:

IMG_E2570
)
Could you by any chance help me out? Thank you in advance. @robertprast @HuskyLens

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions