Refactor PDF handling and add new scripts. Removed specific PDF files from LFS tracking and replaced with a wildcard for all PDFs. Added a script to convert PDFs to PNGs and created new Jupyter notebooks for drawing and marker detection. Added new charuco PDF files for 410x410 markers.

This commit is contained in:
2025-04-23 16:57:13 +08:00
parent 909a0f112f
commit 667c155aab
19 changed files with 360 additions and 31 deletions

14
cvt_all_pdfs.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
# Set input folder
INPUT_DIR="board"
DPI=100 # Resolution in DPI
# Iterate over all .pdf files in the folder
for pdf in "$INPUT_DIR"/*.pdf; do
# Strip .pdf to get base name
base="${pdf%.pdf}"
# Convert to PNG
magick convert -density "$DPI" "$pdf" "${base}.png"
echo "Converted: $pdf${base}.png"
done