mlapi icon indicating copy to clipboard operation
mlapi copied to clipboard

TypeError: 'float' object is not subscriptable

Open hqhoang opened this issue 4 years ago • 2 comments

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]))

hqhoang avatar Jul 06 '21 14:07 hqhoang

Please post your full mlapiconfig

pliablepixels avatar Jul 06 '21 22:07 pliablepixels

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.

hqhoang avatar Jul 07 '21 01:07 hqhoang