Go to file
Amir Alexander Abdelbaki 96194f6d77 rewrite photobooth.py capture pipeline: rotate the image, not the text
Rearranging already-rendered ascii characters (the old text-transpose
rotation) ignores non-square character cells and read as visibly
distorted. Instead, crop the raw camera frame to roughly the right
aspect ratio, rotate it (only for PRINTER_A4) with OpenCV, and only
then convert to ascii - so ascii-image-converter picks shading
characters for correctly-oriented pixel data instead of us hacking
around after the fact.

The live curses viewfinder is now a separate, always-upright,
aspect-corrected preview independent of PRINTER_A4; the rotated/resized
version used for printing is computed fresh from the raw frame only at
capture time.

txt2printr.sh gains ALREADY_ROTATED, set automatically by photobooth.py
so it doesn't redundantly apply its own text-rotation on top of the
image-level one. The bash pipeline (webcam2ascii.sh/exec-cycle.sh),
which can't rotate images itself, still falls back to that text
rotation unchanged.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-14 10:46:48 +02:00
.gitignore add photobooth.py: curses TUI rewrite of the live preview loop 2026-07-03 13:07:53 +02:00
archbaseos-guided-install.sh copied archbaseos-guided-install.sh from The_miro/Dotfiles.git for base OS installation 2026-03-27 13:24:14 +01:00
ascii.conf add ascii.conf and keybinds.conf for converter options and rebindable keys 2026-07-03 11:33:33 +02:00
exec-cycle.sh rebind capture to the space bar 2026-07-03 11:52:57 +02:00
install-deps.sh add photobooth.py: curses TUI rewrite of the live preview loop 2026-07-03 13:07:53 +02:00
keybinds.conf add photobooth.py: curses TUI rewrite of the live preview loop 2026-07-03 13:07:53 +02:00
pagetest.sh add ruler mode to pagetest.sh for exact chars-per-line calibration 2026-07-14 10:28:33 +02:00
photobooth.py rewrite photobooth.py capture pipeline: rotate the image, not the text 2026-07-14 10:46:48 +02:00
printer.conf fix: use measured page capacity instead of derived CPI/LPI geometry 2026-07-14 09:59:06 +02:00
txt2printr.sh rewrite photobooth.py capture pipeline: rotate the image, not the text 2026-07-14 10:46:48 +02:00
webcam.conf add photobooth.py: curses TUI rewrite of the live preview loop 2026-07-03 13:07:53 +02:00
webcam2ascii.sh add ascii.conf and keybinds.conf for converter options and rebindable keys 2026-07-03 11:33:33 +02:00
yay-installer.sh removed the part in the yay installer that installs leahneukirchens nq 2026-03-27 10:58:13 +01:00