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:
14
cvt_all_pdfs.sh
Executable file
14
cvt_all_pdfs.sh
Executable 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
|
||||
Reference in New Issue
Block a user