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

5
.gitattributes vendored
View File

@ -1,5 +1,2 @@
*.parquet filter=lfs diff=lfs merge=lfs -text
charuco_400x400_3x3_s130_m100_no_24.pdf filter=lfs diff=lfs merge=lfs -text
charuco_1189x841_10x7_s115_m90.pdf filter=lfs diff=lfs merge=lfs -text
charuco_400x400_3x3_s130_m100_no_16.pdf filter=lfs diff=lfs merge=lfs -text
charuco_400x400_3x3_s130_m100_no_20.pdf filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

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

141
draw.ipynb Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.