#12 - Live view in the app, and centering through it #8
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#12 Camera live view and better centering
RollNote/rollscan
Reference
RollNote/rollscan!8
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/live-view"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The app's window shows what the camera sees, live, with what the detector finds drawn on it: the gaps between frames, the frame's edges and center, the middle of the picture, and a line saying how far the frame is from the center.
Frames are now centered, and the scanner calibrated, by looking through that live view: only the picture that is kept is a real shot, and that shot is checked. A camera that gives no live view works as before, from real shots.
Run on the real scanner, the live view showed where the detector failed on thin negatives, and this now carries the fixes: frames whose edges were not found are found, a calibration reads the frame's width off the film's height, and a camera that shakes a little no longer stops everything.
Part of #12
How it works
The live view:
gphoto2 --shellstays running and is asked for frame after frame, about 20 a second on the X-T5. About one request in three fails because the camera has no new frame yet; the session survives and asks again.GET /api/live/frameand draws them on a canvas.What the real scanner showed, each fixed in a commit of its own:
The Python reference in
reference/follows these, sotools/parity.pyholds.Tested
cargo test: 235 passed, with a fake gphoto2 shell for the live camera and a simulated scanner whose photos can come out shifted from its live view.tools/parity.py: SAME (325 synthetic pictures, 12 JPEG cases).Not tested
Changes in behaviour
Live view in the app, with the detector's findings drawn on itto WIP: Live view in the app, with the detector's findings drawn on itWIP: Live view in the app, with the detector's findings drawn on itto WIP: #12 - Live view in the app, with the detector's findings drawn on itWIP: #12 - Live view in the app, with the detector's findings drawn on itto WIP: #12 - Live view in the app, and centering through itWIP: #12 - Live view in the app, and centering through itto #12 - Live view in the app, and centering through it