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:
+1
-4
@@ -1,5 +1,2 @@
|
|||||||
*.parquet filter=lfs diff=lfs merge=lfs -text
|
*.parquet filter=lfs diff=lfs merge=lfs -text
|
||||||
charuco_400x400_3x3_s130_m100_no_24.pdf filter=lfs diff=lfs merge=lfs -text
|
*.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
|
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Executable
+14
@@ -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
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Reference in New Issue
Block a user