Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Support]: Bright red bin lid cant be detected #68

Open
haroldboom opened this issue May 8, 2024 · 6 comments
Open

[Support]: Bright red bin lid cant be detected #68

haroldboom opened this issue May 8, 2024 · 6 comments
Labels
config Having to do with the configuration of swatch support Requesting support for swatch

Comments

@haroldboom
Copy link

Describe the problem you are having

Hi all,
I have spent all day trying to get swatch to detect my bright red bin lid. As others have raised I cannot use the color playground so I have been cropping the image and using online/paint color picker to get a range of colors present on the lid however, whatever I do it will never detect the lid. I have tried changing the color ranges looser and looser until it detects the green bin but it will never detect the red. I must be misunderstanding something. I have also change min are to 0 and it just detects random stuff around the bin but never any red. I attached the crop i took of the top to try get the color palette
Main Scree bin n
Detection

Version

3.1.0 HA Addon

Swatch config file

objects:
  garbage_bin:
    color_variants:
      default:
        color_lower: 120, 20, 40
        color_upper: 200, 100, 140
    min_area: 100
    max_area: 3000
cameras:
  front_yard_camera:
    auto_detect: 10
    snapshot_config:
        url: "http://HA:8123/local/snapshots/bin.jpg"
        bounding_box: true
        clean_snapshot: false
        save_detections: true
        save_misses: true
        mode: "all"
        retain_days: 7
    zones:
      front_yard:
        coordinates: 127, 443, 320, 670
        objects:
          - garbage_bin

Relevant log output

[2024-05-08 16:00:56,415]: INFO - Starting migrations
There is nothing to migrate
[2024-05-08 16:00:56,419]: INFO - There is nothing to migrate
[2024-05-08 16:00:56,420]: INFO - Starting Auto Detection for front_yard_camera
[2024-05-08 16:00:56,420]: INFO - Starting snapshot cleanup
[2024-05-08 16:00:56,420]: INFO - Starting Detection Cleanup

Any other information that may be helpful

No response

@haroldboom haroldboom added config Having to do with the configuration of swatch support Requesting support for swatch labels May 8, 2024
@NickM-27
Copy link
Owner

NickM-27 commented May 8, 2024

your second screenshot indicates that it is detecting the garbage bin

@haroldboom
Copy link
Author

your second screenshot indicates that it is detecting the garbage bin

Sorry I probably should have zoomed it in but it’s actually detecting a flower behind the red lid.

I think it’s my rbg config but I can’t get the color playground to work with my URL. I hit submit but nothing happens. If I leave the URL black it opens the color playground but obviously with no image.

@NickM-27
Copy link
Owner

NickM-27 commented May 8, 2024

what url are you trying to use?

@haroldboom
Copy link
Author

haroldboom commented May 8, 2024

what url are you trying to use?

http://ha:8123/local/snapshots/bin.jpg, just a snapshot file on my home assistant

@NickM-27
Copy link
Owner

NickM-27 commented May 8, 2024

it is possible that it is not reachable or not a direct link to the file itself

@haroldboom
Copy link
Author

it is possible that it is not reachable or not a direct link to the file itself

Ah ok, I will try and upload it to the internet and try that. Thanks Nick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config Having to do with the configuration of swatch support Requesting support for swatch
Projects
None yet
Development

No branches or pull requests

2 participants