snowzach / doods2

API for detecting objects in images and video streams using Tensorflow
MIT License
232 stars 30 forks source link

Remove Boxes #91

Closed jorgemontes closed 8 months ago

jorgemontes commented 1 year ago

Hello, I'm using HA OS. I'm trying to remove the boxes from the generated images. My configuration looks like this, but It does not change the generated images. Am i doing something wrong?

logger:
  level: info
server:
  port: "8080"
  auth_key: ""
doods.detectors:
  - name: default
    type: tflite
    modelFile: /opt/doods/models/coco_ssd_mobilenet_v1_1.0_quant.tflite
    labelFile: /opt/doods/models/coco_labels0.txt
    hwAccel: false
  - name: tensorflow
    type: tensorflow
    modelFile: /opt/doods/models/faster_rcnn_inception_v2_coco_2018_01_28.pb
    labelFile: /opt/doods/models/coco_labels1.txt
    hwAccel: false
doods.boxes:
  enabled: false
  boxThickness: 0
snowzach commented 1 year ago

Unfortunately, the way HA OS works, it's nearly impossible to configure DOODS right. They mandate how config must be specified and I haven't figure out how to make it work. I actually just checked again a couple weeks ago and they still haven't fixed it. Sorry. :-(

snowzach commented 1 year ago

ACTUALLY! I think I figured something out... You can not specify box config. You may need to uninstall and re-install the DOODS2 add-on. You can now configure the boxes.

jorgemontes commented 1 year ago

I uninstalled and reinstalled. After checking the new detection it still shows the boxes. I tried using the enabled and boxThickness parameters. There's no clear way to know the version I reinstalled is the expected one. It just says Current version: 1 . This is my configuration for boxes:

enabled: false
boxColor: "#00ff00"
boxThickness: 0
fontScale: 1.2
fontColor: "#00ff00"
fontThickness: 1
snowzach commented 8 months ago

Okay, I reworked all the haos config options a while ago. I just verified this all works now.