Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: 'float' object is not subscriptable #40

Open
hqhoang opened this issue Jul 6, 2021 · 2 comments
Open

TypeError: 'float' object is not subscriptable #40

hqhoang opened this issue Jul 6, 2021 · 2 comments

Comments

@hqhoang
Copy link

hqhoang commented Jul 6, 2021

I put object_min_confidence=0.38 into one of the monitor sections in mlapiconfig.ini, and mlapi.py crashed with a TypeError on line 132, where it formats the debugging information.

g.logger.Debug(2, 'Overriding global {} with {}...'.format(key, g.monitor_config[mid][key][:30]))

@pliablepixels
Copy link
Member

Please post your full mlapiconfig

@hqhoang
Copy link
Author

hqhoang commented Jul 7, 2021

Please post your full mlapiconfig

mlapiconfig.ini.txt

I commented out line #132 of mlapi.py, and it works fine, overriding object_min_confidence correctly. Somehow OpenCV saw a person from the texture of my freshly recoated driveway with a confidence of 0.369, bumping min_confidence to 0.38 to overcome that false positive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants