Skip to content

Conversation

@BryonLewis
Copy link
Collaborator

@BryonLewis BryonLewis commented Jan 29, 2026

combination of #276 with batbot spectrogram generation.

  • based on batbot-integration right now
  • Is on a batbot branch that allow for the output of masks
  • Adds ./batbot/core/utils/contour_utils.py which will take an image and generate contours for it
  • Adds to the SpectrogramImage the concept of a Masks file
    • Adds to all relevant locations access to the masks
    • The return output for spectrogram info will now contain the masks
  • Model Updates
    • Pulse_Metadata - contains pulse information and contours for now, will in the future contain curves and knee, toe, heel
      data
    • mostly contains the contours currently
    • in ./bats_ai/core/views/recording.py include endpoint /pulse_data that gets the pulse metadata and contours
  • Client Updates
    • Adds a new image layer for masks in geoJSUtils.ts
    • contourLayer.ts added for rendering contours Taken from Issue 239 generate smooth svg #276
      • Modified slightly so that will update the style when scaling or opacity changes
    • SpectrogramImageContentMenu.vue take from Issue 239 generate smooth svg #276
      • Modified so that it has the maks or the contours
      • contours have a warning because it can take a few seconds to update
      • Both masks, contours and the base image have the ability to change the opacity

@BryonLewis BryonLewis changed the base branch from main to batbot-integration January 30, 2026 17:32
Base automatically changed from batbot-integration to main February 4, 2026 13:57
@BryonLewis BryonLewis marked this pull request as ready for review February 4, 2026 14:32
@BryonLewis BryonLewis requested a review from naglepuff February 4, 2026 14:32
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 5, 2026

Deploying bats-ai with  Cloudflare Pages  Cloudflare Pages

Latest commit: effe76c
Status: ✅  Deploy successful!
Preview URL: https://8af5470e.bats-ai.pages.dev
Branch Preview URL: https://batbot-contours.bats-ai.pages.dev

View logs

Copy link
Collaborator

@naglepuff naglepuff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some pretty minor comments. This all lines up more or less with what I was expecting.

@naglepuff
Copy link
Collaborator

It also looks like the contour layer is drawn over the axes layer. Maybe the axes need to be redrawn as well when toggling the contours
image

BryonLewis and others added 5 commits February 5, 2026 14:43
@BryonLewis
Copy link
Collaborator Author

It also looks like the contour layer is drawn over the axes layer. Maybe the axes need to be redrawn as well when toggling the contours image

Added some code to check the z-index of the line layer and make sure that contours is added behind the lines/text layers.

@BryonLewis BryonLewis requested a review from naglepuff February 6, 2026 13:26
@BryonLewis BryonLewis merged commit 7c8bd90 into main Feb 6, 2026
7 checks passed
@BryonLewis BryonLewis deleted the batbot-contours branch February 6, 2026 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants