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]: #61

Open
ZacTyAdams opened this issue Nov 9, 2023 · 8 comments
Open

[Support]: #61

ZacTyAdams opened this issue Nov 9, 2023 · 8 comments
Labels
support Requesting support for swatch

Comments

@ZacTyAdams
Copy link

Describe the problem you are having

Unable to view color picker screen in HomeAssistant Add-on

Version

latest

Swatch config file

# REQUIRED: Define a list of objects that are expected to be seen. These can be specific
# to one camera or common between many / all cameras
objects:
  # REQUIRED: Name of the object
  fireplace:
    # REQUIRED: the list of color variants that this object can be detected as. Useful for
    # different lighting conditions
    color_variants:
      # REQUIRED: the name of the color variant
      default:
        # REQUIRED: the lower R, G, B values that are considered a potential match for the
        # color variant of the object.
        color_lower: 70, 70, 0
        # REQUIRED: the upper R, G, B values that are considered a potential match for the
        # color variant of the object.
        color_upper: 110, 100, 50
        # OPTIONAL: the time range for when this color variant is allowed
        # NOTE: make sure that /etc/localtime is passed to the container so it has valid time
        time_range:
          # OPTIONAL: Color variant is valid if current time is > this 24H time (Default: shown below).
          after: "00:00"
          # OPTIONAL: Color variant is valid if current time is < this 24H time (Default: shown below).
          before: "24:00"
    # OPTIONAL: the min area of the bounding box around groups of matching R, G, B pixels
    # considered a true positive. This is not recommended to be set as a super small amount
    # could be a false positive. (Default: shown below)
    min_area: 1000
    # OPTIONAL: the max area of the bounding box around groups of pixels with R, G, B
    # values within the bounds to be considered a true positive (Default: shown below).
    max_area: 100000
    # OPTIONAL: the min ratio of width/height of bounding box for valid object detection (default: shown below).
    min_ratio:
      0
      # OPTIONAL: the max ratio of width/height of bounding box for valid object detection (default: shown below).
    max_ratio: 24000000

# REQUIRED: Define list of cameras that will be used for color detection.
cameras:
  # REQUIRED: Name of the camera
  living_room_cam:
    # OPTIONAL: Frequency in seconds to run detection on the camera.
    # a value of 0 disables auto detection (Default: shown below).
    auto_detect: 0
    # OPTIONAL: Configure the url and retention of snapshots. (Default: Shown Below)
    snapshot_config:
      # OPTIONAL: but highly recommended, setting the default url for a snapshot to be
      # processed by this camera. This is required for auto detection (Default: none).
      url: "https://wallpaperset.com/w/full/0/d/5/183330.jpg"
      # OPTIONAL: Whether or not to draw bounding boxes for confirmed objects in the snapshots (Default: shown below).
      bounding_box: true
      # OPTIONAL: Whether or not to save a clean png of the snapshot along with the annotated jpg (Default: shown below).
      clean_snapshot: true
      # OPTIONAL: Whether or not to save the snapshots of confirmed detections (Default: shown below).
      save_detections: true
      # OPTIONAL: Whether or not to save the snapshots of missed detections (Default: shown below).
      save_misses: false
      # OPTIONAL: Variations of snapshots to keep. Options are all, mask, crop (Default: shown below).
      mode: "all"
      # OPTIONAL: Number of days of snapshots to keep (Default: shown below).
      retain_days: 7
    # REQUIRED: Zones are cropped areas where the object can be expected to be.
    # This makes searching / matches for efficient and more predictable than searching
    # the entire image.
    zones:
      # REQUIRED: Name of the zone.
      street:
        # REQUIRED: Coordinates to crop the zone by.
        # NOTE: The order of the coordinates are: x, y, x+w, y+h starting in the top left corner as 0, 0.
        coordinates: 225, 540, 350, 620
        # REQUIRED: List of objects that may be in this zone. These correspond to
        # the objects list defined previously and are matched by name.
        objects:
          - fireplace

Relevant log output

[2023-11-08 20:53:18,833]: INFO - Starting SwatchApp
[2023-11-08 20:53:18,838]: INFO - Importing SwatchApp Config
[2023-11-08 20:53:18,838]: INFO - Verified SwatchApp Config
Starting migrations
[2023-11-08 20:53:18,842]: INFO - Starting migrations
There is nothing to migrate
[2023-11-08 20:53:18,846]: INFO - There is nothing to migrate
[2023-11-08 20:53:18,846]: INFO - Starting snapshot cleanup
[2023-11-08 20:53:18,847]: INFO - Starting Detection Cleanup

Any other information that may be helpful

Dashboard view:
image

Color picker view:
image

Settings view:
image

Setting a source via the UI doesn't seem to do anything.

@ZacTyAdams ZacTyAdams added the support Requesting support for swatch label Nov 9, 2023
@NickM-27
Copy link
Owner

NickM-27 commented Nov 9, 2023

what type of url are you using?

@ZacTyAdams
Copy link
Author

That URL is just to a dummy wallpaper image I found. This problem is also present when using an actual jpg snapshot URL from the Docker-Wyze-Bridge addon

@NickM-27
Copy link
Owner

NickM-27 commented Nov 9, 2023

What image url are you entering into the text field in the webUI?

@ZacTyAdams
Copy link
Author

In the above photos:
https://wallpaperset.com/w/full/0/d/5/183330.jpg

@SupremeSports
Copy link

Same issue here...

@JustinTomerlin
Copy link

Same issue here as well

@jmadden91
Copy link

Same issue

@frankyman88
Copy link

frankyman88 commented Apr 14, 2024

Same issue with a scrypted webhook, using container version 3.1.0 because latest won't launch for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Requesting support for swatch
Projects
None yet
Development

No branches or pull requests

6 participants