ZoneMinder / mlapi

An easy to use/extend object recognition API you can locally install. Python+Flask. Also works with ZMES!
Other
58 stars 34 forks source link

show_percent=no not taken into account by mlapi #31

Closed mfauvain closed 3 years ago

mfauvain commented 3 years ago

Hi, it seems objectconfig.ini show_percent=no is not taken into account by the mlapi server. Images are shown with detected object and % when analyzed by mlapi.

pliablepixels commented 3 years ago

mlapi only overrides ml_sequence. show_percent is outside of it, which means it needs to be part of objectconfig.ini

mfauvain commented 3 years ago

not sure I follow. On my zmevent server I have objectconfig.ini with show_percent=no. However, when an object detection is run on the mlapi server, the image shown in zmninja has the %. This is new since last upgrade. It was not showing % before.

pliablepixels commented 3 years ago

Not sure why. I just tried and it removed the %. Are you sure you are not overriding show_percent elsewhere?

pliablepixels commented 3 years ago

Aha I think you mean the percent shows in the bounding boxes correct? I was looking at the message in notification. Yes, that is correct, and will be fixed.

mfauvain commented 3 years ago

indeed! Thx

pliablepixels commented 3 years ago

Fixed (you need to update zm_detect)