Add photo station backend - #135
Draft
noobydp wants to merge 1 commit into
Draft
Conversation
This was referenced Jul 11, 2026
noobydp
force-pushed
the
codex/photo-stations-backend
branch
from
July 11, 2026 07:50
bcad2dd to
0145d3a
Compare
Collaborator
|
@noobydp I will get to this and your other related PRs at some stage over the next few days |
Contributor
Author
|
No problem, whenever you have time. |
jasonmadigan
requested changes
Jul 26, 2026
noobydp
force-pushed
the
codex/photo-stations-backend
branch
from
August 2, 2026 08:46
0145d3a to
63a9c78
Compare
Contributor
Author
|
Updated this branch after review and rebased it onto current Changes made in this update:
Local validation:
Code and PR drafted with Codex |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This adds the backend foundation for reusable photo stations. A photo station stores a known camera/paper setup so later captures from the same setup can reuse or compare against saved paper corners instead of starting from scratch each time.
The PR includes:
Implementation Notes
The station store follows the existing local JSON-store pattern used elsewhere in the backend. Station records include paper size, image dimensions, source image path, saved corners, and timestamps.
The corner confirmation endpoint can now optionally receive
save_station_name. When present, the backend creates a station from the confirmed session image and corners as part of the same workflow.This also addresses review feedback from the original larger PR:
datetime.utcnow().Tests
python -m pytest backend/tests/test_photo_stations.pyCode and PR drafted with Codex