ZoneMinder / zmeventnotification

Machine Learning powered Secure Websocket & MQTT based ZoneMinder event notification server
412 stars 128 forks source link

poly line thickness setting (0=off) #291

Closed mvignol closed 4 years ago

mvignol commented 4 years ago

Event Server version

5.15

The version of ZoneMinder you are using:

1.34.16

What is the nature of your issue

the event notification images include poly lines for the zones of the monitor. i would like to disable them because they tend obscure things in my set up

Details

there is a poly_color setting in objectconfig.ini. if there was an addition control for the poly line thickness, then that could also serve as a means to completely turn off the zone outlines as well as give users a bit more control over the look of the lines if they want them. i've simply commented out the code in the zmes_hook_helpers/image_manip.py file, but i'm currently running in a docker and so it keeps coming back.

Thanks!

pliablepixels commented 4 years ago

good idea. Done. However, the changes are made to master and there are several config related breaking changes. https://zmeventnotification.readthedocs.io/en/latest/guides/breaking.html

mvignol commented 4 years ago

cool. one thing, tho. the polylines seems to have a lower bounds on the thickness -- 0 still draws a 1 thickness line. to turn it off, i think you need to check if the thickness is less than 1 and skip the code entirely in that case.