Skip to content

Image history#51

Open
MoveFastAndBreakThings-dot wants to merge 3 commits into
mainfrom
image-history
Open

Image history#51
MoveFastAndBreakThings-dot wants to merge 3 commits into
mainfrom
image-history

Conversation

@MoveFastAndBreakThings-dot

Copy link
Copy Markdown

Resolves #32 — Image History with Persistent Storage

Solution

Built a full image history system with SQLite persistence.

What was added

Image History UI

  • After capturing, images are saved to disk on the ground station (data/images/)
  • A "Saved Images (N)" button appears on the image panel showing count of saved images
  • Clicking it reveals a scrollable thumbnail strip with all saved images
  • Each thumbnail shows a user-given name (or timestamp as fallback)
  • Clicking a thumbnail switches the main canvas to that image
  • Red "Delete" button on each thumbnail removes it from disk and history

Image Naming

  • After each capture, a popup asks the user to name the image (e.g. "center", "field-left")
  • Names persist across sessions
  • Skip option available if no name needed

Dot/Target Persistence

  • Pixel coordinates of clicked targets are now saved to the database
  • Switching away from an image and back restores all dots on the canvas
  • Dots persist across page reloads and server restarts

SQLite Database (data/emu.db)
Replaced targets.json and images-meta.json with a proper SQLite database using better-sqlite3:

  • targets table — 3D target points per image
  • images table — saved image metadata (filename, timestamp, name)
  • image_points table — pixel click coordinates per image

Existing data in targets.json and images-meta.json is auto-migrated on first server start.

@MoveFastAndBreakThings-dot

Copy link
Copy Markdown
Author

sorry i accidenlty switched branch using checkout command from a previous branch that is why all its fiels also got commit I didn't realize that, I should have checked out from main

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.

history of images

1 participant