djdd87 / SynoAI

A Synology Surveillance Station notification system utilising DeepStack AI
GNU General Public License v3.0
207 stars 24 forks source link

Feature Request - Detection box text background color #125

Open cuda444 opened 2 years ago

cuda444 commented 2 years ago

I've noticed that on some backgrounds, the detection box text displaying what is detected and the % certainty is difficult to read regardless of the color of the text without making the text enormous. Was thinking it may be useful to be able to change the background color of the text box... ie - green text box with black or white text, for example. Even just a black text box with white text. Just something to block out that area of the image and provide a solid color to display the text on.

Thank you again for all your work on this project.

djdd87 commented 2 years ago

Done. Example using white:

image

djdd87 commented 2 years ago

Added in v1.2.0

cuda444 commented 2 years ago

Thank you!

cuda444 commented 2 years ago

Just been playing with this. I used textoffsety to move the text above the detection box, rather than inside of it. However, when doing so, the background color box shifts above the text. Basically if you do textoffsety: -50, it appears the background box moves -100. Is there a textboxoffsety option, by chance? Or can it be added easily?

Thank you for all your work on this project. It really has been a game changer

djdd87 commented 2 years ago

Can you give me an example picture?

cuda444 commented 2 years ago

4E52CA66-BA4C-4F51-A225-CC5EAA1B6992

Here you go. Thank you.

djdd87 commented 2 years ago

OK, odd. I must have got some maths wrong with the negative offsets. I'll look later this week.